How to create a sub form based on option

adebimpe_ajobo 20 Mar, 2012
Hello, I am using chronoforms version 4.0 RC3.2. please how do I make an additional form appear based on select box options of either yes or no within a parent form. Thank you.
plamendp 23 Mar, 2012

Hello, I am using chronoforms version 4.0 RC3.2. please how do I make an additional form appear based on select box options of either yes or no within a parent form. Thank you.



Hi,

Looking for exactly the same: based on payment option (Yes/No) to display/hide PayPal related fields and respectively call/don't call PayPal payment.

This is jQuery, but how to ?

Petkov
GreyHead 08 Apr, 2012
Hi,

There are two ways of doing this. The simplest is to submit the parent form and then use a Custom Code action to redirect the user (and the data if necessary) to a second form.

The second is to add both forms to the parent form HTML in divs that are hidden by CSS and then to 'un-hide' one of them depending on the user actions. The hiding and unhiding is easy, managing the form validation is more tricky but possible in CFv4. There are other threads here that talk about this.

Unless you are skilled in JavaScript I recommend that you do not use JQuery with Joomla!. There are far too many posts here because of jQuery problems.

Bob
This topic is locked and no more replies can be posted.