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?
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?
is working on a reply...