Forbidding characters

By: Eric Toffey | Asked: 11/13/2023
ForumsCategory: General questionsForbidding characters
Eric Toffey asked 5 months ago
Is there a way that we can forbid certain characters in our form? Our team is concerned about users being to inject scripts and we'd like to prohibit certain characters 
1 Answers
Rob LeVineRob LeVine answered 5 months ago
Theoretically, you can use the form's Customize HTML tab in Form Settings to add the pattern attribute to the input field, however, if it's for a lot of fields, it'd be easier to use jQuery to restrict the user from entering certain characters into all input fields in all your forms.
Eric Toffey replied 5 months ago

Thank you very much, I will look into pattern attribute first

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right