Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mayur Deore 13 posts 146 karma points c-trib
    Dec 19, 2018 @ 13:21
    Mayur Deore
    1

    Umbraco Forms sanitize form data before saving

    We have integrated umbraco forms for one of our clients site. However client raised issue regarding sanitizing the form data.

    For example if user enters <script>alert(1)<script> in one of field then form gets submitted and the data next to the field is shown as it is i.e <script>alert(1)<script>.

    After research i came to know that there is no onsubmit method to override for umbraco forms.

    I know that script code is treated as text only, but client wants sanitized data to be shown in backoffice for form data.

    Is there any way I can perform sanitization before umbraco forms saves data?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies