November Happy Hour will be moved to Thursday December 5th.

Validating Xforms input for HTML entry

Vote:
 

Hi,

We have a XForm in our CMS 7.5 MVC site and when HTML/JavaScript is entered into one or more fields which produces a 500 error (which is good that it's preventing submission of this). Our client has asked if we can trap this before the 500 and return a warning to the user that they must only submit 'safe' data.

Has anyone done this before or offer any tips?

Thanks,

Mark

#131835
Aug 06, 2015 16:08
Vote:
 

Any thoughts?

#133217
Aug 27, 2015 15:25
Vote:
 

Hva you tried using JavaScript to validate the input?

It can also be possible to validate the input in code (C#) but it can be a bit more tricky.

#133221
Aug 27, 2015 16:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.