adding form fields at runtime?
Posted: 2011-11-18 18:00
Hi all,
I'm using ADDT here, but I think this is the same in Kollection 3 pro.
I need to create a form with a X number of fields.
Something similar to:
---------
MYFORM
field1
field2
field3
---------
[submit]
[add field(button)]
After clicking the add field button the field4 is created. So the form will look like:
---------
MYFORM
field1
field2
field3
field4
---------
[submit]
[add field(button)]
I found a way to do this with javascript but after I create all required fields I cannot find a way to manage them with ADDT.
I have the number of total fields in a Javascript variable.
I cannot find an easy way to pass this variable to php for handling with ADDT validation and session storing. I would like to store all fields in session variable and collect them.
It seems I need to send the javascript variable doing a redirect but how can I manage it with ADDT?
Hope someone can help me.
Thanks in advance for any suggestion.
tony
I'm using ADDT here, but I think this is the same in Kollection 3 pro.
I need to create a form with a X number of fields.
Something similar to:
---------
MYFORM
field1
field2
field3
---------
[submit]
[add field(button)]
After clicking the add field button the field4 is created. So the form will look like:
---------
MYFORM
field1
field2
field3
field4
---------
[submit]
[add field(button)]
I found a way to do this with javascript but after I create all required fields I cannot find a way to manage them with ADDT.
I have the number of total fields in a Javascript variable.
I cannot find an easy way to pass this variable to php for handling with ADDT validation and session storing. I would like to store all fields in session variable and collect them.
It seems I need to send the javascript variable doing a redirect but how can I manage it with ADDT?
Hope someone can help me.
Thanks in advance for any suggestion.
tony