hey How can I Block URLs Inside the Form Fields?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Do you mean that you want to remove URLs added to WYSIWYG field?
Can you please explain your case and with what form fields you do not want or how you want to block the URLs?
In addition to that - I would like to have debug information that will help us to know your current setup.
- https://toolset.com/faq/provide-debug-information-faster-support/
Hey what I mean is on the message field on the form when the user includes a url on the message I want to show him an error message instead to submit the form
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
You can use the Toolset Form's hook "cred_form_validate" to validate any of your field.
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
Following link may help you to check if content has URL or not and you can use the above hook to validate the message field:
- https://stackoverflow.com/questions/19463929/check-if-text-contains-url
My issue is resolved now. Thank you!