Why onclick="code" Auto Remove on Email Notification

  • Profile Image
    aduh
    Asked on August 09, 2015 at 02:08 PM
    Screenshot
  • Profile Image
    EltonCris
    Answered on August 09, 2015 at 06:50 PM

    That's simply because Jotform don't support javascript events on the form as well as on email notifications. That's why it is stripped off. This is done for security reasons, e.g. to filter XSS codes which are very rampant nowadays using onclick and other similar events.

    Hope this clears your question.

  • Profile Image
    aduh
    Answered on August 10, 2015 at 03:43 AM

    but I do not intend to.
    My goal is good.
    please help me, because I really need a site to call javascript onclick on site

  • Profile Image
    ashwin_d
    Answered on August 10, 2015 at 06:55 AM

    Hello aduh,

    Unfortunately it is not possible to add any script code in form or email alert. I agree that your goal is good but our system does not allow this for security reasons. If you add any script code it will be deleted automatically.  

    Thank you!

  • Profile Image
    aduh
    Answered on August 10, 2015 at 01:45 PM

    Thank you for the answer
    I think (onclick) are inserted into the code <a> not categorized javascript