Hello
Firstly, The last couple of days I have evaluated demos for all the paid and free forms for Joomla 3 and ChronoForms seem to be the best of them all even without what I am going to ask now.
My question goes for any versions of CF.
I am making a registration page for members of my church where they first will have a dropdown option where they pick how many members they have in their family. Based on this the form will show Fields for; name, adress, birthdate, e-mail, phone. So if the registering person picks 5 in the first dropdown then five fields of the mentioned will apear.
Searching this forum and the FaQ gave me this: http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2700-how-can-i-have-a-button-to-add-more-form-inputs.html
But it is not what I actually want.
Now to extend this (not important, but happy if it works): The age will be calculated from the input of each birthdate. If the age is 18+ a fixed amount of money will be added to the total members fee that will be shown on the thank you page along with an unique reference number and banking details.
Am I being realistic with my ideas above? Could this be done with Chronoforms? I did find some solution in this forum for calculations, but don´t know if it will go along with age calculation etc.
Best regards,
Ante
Firstly, The last couple of days I have evaluated demos for all the paid and free forms for Joomla 3 and ChronoForms seem to be the best of them all even without what I am going to ask now.
My question goes for any versions of CF.
I am making a registration page for members of my church where they first will have a dropdown option where they pick how many members they have in their family. Based on this the form will show Fields for; name, adress, birthdate, e-mail, phone. So if the registering person picks 5 in the first dropdown then five fields of the mentioned will apear.
Searching this forum and the FaQ gave me this: http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2700-how-can-i-have-a-button-to-add-more-form-inputs.html
But it is not what I actually want.
Now to extend this (not important, but happy if it works): The age will be calculated from the input of each birthdate. If the age is 18+ a fixed amount of money will be added to the total members fee that will be shown on the thank you page along with an unique reference number and banking details.
Am I being realistic with my ideas above? Could this be done with Chronoforms? I did find some solution in this forum for calculations, but don´t know if it will go along with age calculation etc.
Best regards,
Ante
Hi ante,
There are various ways to do this, the simplest is to make a two page form with the 'number of members' question on the first page, then use a little PHP on the second page to show the appropriate number of input boxes. You can also do it with JavaScript in the same page using code similar to that in the FAQ.
There's been a thread in the last few days which included some PHP for calculating an age from a date of birth. That should help with the second question.
Bob
There are various ways to do this, the simplest is to make a two page form with the 'number of members' question on the first page, then use a little PHP on the second page to show the appropriate number of input boxes. You can also do it with JavaScript in the same page using code similar to that in the FAQ.
There's been a thread in the last few days which included some PHP for calculating an age from a date of birth. That should help with the second question.
Bob
This topic is locked and no more replies can be posted.