need a code for enable disable an element between some forms

rechi 29 Aug, 2012
its possible enable disable elements depends the dropdown list on diferents forms, there is that i need

in form 1 i put a marital status dropdown question

in form 2 there is some questions

i need to enable disable depends the answer, if the answer is single i need to enable the question
do you have a girlfriend or boyfriend

if the answer is married enabled the date of the weeding etc,

please i need the code because i can do it but just in one form, its that posible in 2 or more forms


thank you
GreyHead 30 Aug, 2012
Hi rechi,

It's possible either by using PHP to make some of the form inputs conditional on the previous results - you could do this using the Container element with a custom code setting. This ius probably the best solution.

Or you could do it in the form with JavaScript - you'd need to add the values in hidden elements, then write script to read them and hide or display elements in the form.

Bob
rechi 30 Aug, 2012
thank you but my problem is that i m new on this and i dont know php and javascript, can i get the code for that in any page or get similar code on some list,thanl you again
Max_admin 31 Aug, 2012
Did you try to look for this on Google ? this is a general JS question, not Chronoforms dependent.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.