Invalidate special character " or quote character


Badge +1

I am attempting to add a rule to a form that carries out the following logic:

contains({Self}, """) which would invalidate a field if the user enters any quotation characters. This does not seem to work but when I do this: contains({Self}, "&"), it invalidates if a & is entered. Is there any way to invalidate a quote character?


2 replies

Userlevel 6
Badge +22

Hi.

Use the rule:

contains({Self},"""")

Or configure the validation in the control itself.

3780iE0BDF1C55ECCA17A.png

Either way will work.

 

Badge +1

@SimonMuntz Thank you for your suggestion. It worked like a charm!

Reply