Sat Jan 21, 2017, 9:33 pm
 3  168
Showing 1 to 4 of 4 entries.

Hello,

I have a form which has a multiplier. In the multiplier contents I have 2 columns side by side. In the first column there are 4 dropdown menus, where three of them are parent hidden. The hidden ones are shown depending on the selection in the first one. For example:

The first dropdown menu has 3 options. Relative, Friend and Professional. If the "Relative" option is selected in the first dropdown then the hidden "Relative types" menu, which loads types from a database table, e.g father, mother, sister etc. is shown. If Friend is selected then second dropdown will show friend types. In the second column I have textboxes to be filled regarding the person with selected person type. (A Relative ---> Who is my Sister --> Name, Lastname, Dob, ...etc)

When I click on the plus button to add a new person, the secod dropdown menu is automatically shown depending on the selection in the first person. I mean, if I select a relative in the very first menu and fill the respective information, then click on the + button to add a new person, the conditionally shown dropdown menu shows relative types (father, mother etc) even the friend option is selected in the new added forms frist dropdown.

I am very new to joomla and chronoforms, any help will be greatly appreciated.

Thank you.

  • Capture.PNG
    Capture.PNG (52.32 KiB) Viewed 32 time(s).
2 2
Wed Jan 11, 2017, 11:15 am

Hi Buyrukbilen,

There may be a conflict between the elements ids some where, I can't tell without checking the form.

Best regards,

Max


If your main question got answered then please select the answer using the GREEN button!

Moderator
12931 17701
Mon Aug 14, 2006, 1:29 am

Hello Max,

I am very new to joomla and chronoforms. Could you give me a clue to check the ids of the elements? At least I can try to see if something is worng with the ids. If I cannot see the problem then we will try to find a way to make you look at the form. It is on my local right now.

Thank you.

2 2
Wed Jan 11, 2017, 11:15 am

Hi Buyrukbilen,

I don't think that you can do this using the Events code inside a Multiplier. The problem is that the events code is written before the form loads but you need it to apply to new select elements that are being generated in the multiplier.

You get get the result you want using custom JavaScript - there's an example in this post.

Bob


ChronoForms technical support

If you'd like to buy me a coffee or two, thank you very much

Moderator
45904 57479
Tue May 29, 2007, 6:15 pm
Showing 1 to 4 of 4 entries.

Powered by ChronoForums - ChronoEngine.com

ChronoForms Book

The ChronoForms Book, written for ChronoForms v3 contains 350 pages of invaluable ChronoForms How-tos hints and tips.

Note: many of the ideas can be used in ChronoForms v4 but the admin interface is very different and code examples may need to be modified.

SSL

Members Login

 

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com