I have an employment form created by Chronoforms.
I would like to do something like this:
Have lets say 2 fields for references and then have an additional button to press to add more fields dynamically. Is this a possibility?
This is my current form. http://bullfrogs-butterflies.com/apply-online.html?view=form
I would like to do something like this:
Have lets say 2 fields for references and then have an additional button to press to add more fields dynamically. Is this a possibility?
This is my current form. http://bullfrogs-butterflies.com/apply-online.html?view=form
Hi jrdbrn,
Please see this FAQ
Bob
Thanks Bob, That works well.
Given the FAQ example, could you tell us how to save all the extra fields to the database?
Hi Craig,
It depends on your new fields names, if you are adding an array of fields then you can either concatenate the values into 1 string using the "Handle arrays" action, or in more advanced cases you may need a database table to store these records, this may need some custom code!
Regards,
Max
It depends on your new fields names, if you are adding an array of fields then you can either concatenate the values into 1 string using the "Handle arrays" action, or in more advanced cases you may need a database table to store these records, this may need some custom code!
Regards,
Max
Hi, Bob,
Can you show us, using your example in the FAQ, how to access those values for use in a generated e-mail?
Thanks,
Dorothy
Can you show us, using your example in the FAQ, how to access those values for use in a generated e-mail?
Thanks,
Dorothy
Hi Dorothy,
If you know the fields names range then you can simply write their names between curely brackets in the email template!
However, if you don't know and this is totally dynamic, then you will need a PHP for loop to go through all the fields data range!
Regards,
Max
If you know the fields names range then you can simply write their names between curely brackets in the email template!
However, if you don't know and this is totally dynamic, then you will need a PHP for loop to go through all the fields data range!
<?php
foreach($form->data["dynamic"] as $dfield){
echo $dfield."<br>";
}
Regards,
Max
Gotcha... I was getting that figured out but this is very helpful! Just what I needed! Thanks!
This topic is locked and no more replies can be posted.