Any way to add additional field by pressing + or button.

jrdbrn 12 Nov, 2013
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
craigmartin 13 May, 2014

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?
Max_admin 14 May, 2014
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dfirsching 20 May, 2014
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
Max_admin 20 May, 2014
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!


<?php
foreach($form->data["dynamic"] as $dfield){
echo $dfield."<br>";
}


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dfirsching 20 May, 2014
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.