Input validation in single page application

Hello guys,

I’ve maid a single page application with multiple steps that user needs to take.
I have a bunch of forms, which I require user to fill and I need to validate if those are filled.

In multipage app everything is simple, just check “this input should not be empty”. However it does not work in single page apps.

Any ideas how can I overcome this problem?

You just need to check the input value of each element to see if they are empty or not…

If you need to access that validation in multiple places, it makes sense to use a hidden group with a content type of yes/no, then put all the conditions in it’s datasource - i.e. inputA’s value is not empty AND inputB’s value is not empty AND inputC’s value is not empty AND inputD’s value is not empty etc.

(you could instead use some custom JavaScript and check all the inputs by Class, then output a yes/no value)…

Then just use that group’s yes/no value as a way to validate your workflow and/or buttons.

This topic was automatically closed after 70 days. New replies are no longer allowed.