I'm working on a page where I have to dynamically add multiple fields. I've basically completed the job but I'm being held back by the validation.
The problem is that the form fields need specific regex validation which worked well when there was only a single input. Now, when fields are dynamically created by javascript, it only validates the first field.
I've googled around but haven't found anything and for now my only idea is to pass regex value from the settings file to javascript and validate it on the user side but I won't be able to use Page.IsValid()
then.
So my question is - is it possible to add server side validation to fields dynamically created by javascript, and how?
Thank you!