This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Web designer validation not triggered

Hello,

We have one email address in the table person, that should be validated. If an invalid email address is entered, a message should be displayed below that field. We added a Validation node under the field for that matter.

 

However this field also has some validation in the back-end (using the Formatting Script, see image below) and the validation in the Web Designer is not triggered. 

 

Instead of the validation defined in the Web Designer being used (simple message below the invalid field), this Formatting Script validation is being used to display a pop up with the error message.

I don't want a pop up to be displayed each time a validation error occurs from our Web application. For the web application I only want to display the error message below the field.

Is this possible?

Why does the Formatting Script overrides the Validation node specified in the Web Designer?

Thank you in advance for your help! 

Parents
  • Hi,

    This behavior occurs because your text box is directly bound to the email address field which contains the formatting script. This causes the formatting script to be called immediately when a new value is set.

    To work around this, define a custom field in WebDesigner to temporarily hold the email address. Validate the contents of that custom field. Before saving the data, copy the content from the custom field to the database-bound field.

    Hope this helps

    Hanno
Reply
  • Hi,

    This behavior occurs because your text box is directly bound to the email address field which contains the formatting script. This causes the formatting script to be called immediately when a new value is set.

    To work around this, define a custom field in WebDesigner to temporarily hold the email address. Validate the contents of that custom field. Before saving the data, copy the content from the custom field to the database-bound field.

    Hope this helps

    Hanno
Children
No Data