Hi,
Before I start, Chronoforms ROCKS!!! I have managed to produce some really funky forms using validation and more. For the last few days I have been working on a modal pop-up iframe dynamic ajax form, hmm sounds complicated, well it is rather: -
The main problem i have is validating form fields that are called up using Ajax. EVERYTHING works fine, except when i bring a new field into the modal box using Ajax. Working through the javascript it looks like I must replicate the code generated by chronoforms for every field rendered by ajax?
If this is the case, then oh dear!!! Lots of work for me to do. I had a similar problem with modal links (class="modal") before, but managed to produce a modal.init function with 2-3 lines of code that would re-build all the modal links once ajax had put them on the page. It would be real nice to have a similar js function to re-initialise validation for ajax generated form fields.
So, before i start going down the long road of re-generating all the validation code for every form field rendered by ajax, could someone please confirm this is the case and what i need to do is re-build all the validation js every time a new form field is added?
Thanks in advance,
KFCI
Before I start, Chronoforms ROCKS!!! I have managed to produce some really funky forms using validation and more. For the last few days I have been working on a modal pop-up iframe dynamic ajax form, hmm sounds complicated, well it is rather: -
The main problem i have is validating form fields that are called up using Ajax. EVERYTHING works fine, except when i bring a new field into the modal box using Ajax. Working through the javascript it looks like I must replicate the code generated by chronoforms for every field rendered by ajax?
If this is the case, then oh dear!!! Lots of work for me to do. I had a similar problem with modal links (class="modal") before, but managed to produce a modal.init function with 2-3 lines of code that would re-build all the modal links once ajax had put them on the page. It would be real nice to have a similar js function to re-initialise validation for ajax generated form fields.
So, before i start going down the long road of re-generating all the validation code for every form field rendered by ajax, could someone please confirm this is the case and what i need to do is re-build all the validation js every time a new form field is added?
Thanks in advance,
KFCI