Hi Bob,
It drives me crazy..
In the J2.5 version with Chrono 4.0 RC3.4.1 it worked nicely.
In the J3.2 version with Chrono V4.0.3 it doesn't anymore
What's the problem? Once "Ja" (field intro1) is selected, the other fields (intr2,3 4 and 4) should be opened/showd in the form
This is the HTML code
In the EVENTS tab, I added the Load JS, and put thsi code in:
Now, with the debugger I get the following response:
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => PITCHenPUTT
)
Validation Errors:
Array
(
Hope you can give me a further push to get this working again....
)
It drives me crazy..
In the J2.5 version with Chrono 4.0 RC3.4.1 it worked nicely.
In the J3.2 version with Chrono V4.0.3 it doesn't anymore
What's the problem? Once "Ja" (field intro1) is selected, the other fields (intr2,3 4 and 4) should be opened/showd in the form
This is the HTML code
<div class="ccms_form_element cfdiv_select" id="intro_container_div"><label for="intro1">Introducé mee?</label><select size="1" id="intro1" class="" title="" name="intro1">
<option value="Nee">Nee</option>
<option value="Ja">Ja</option>
</select>
<div class="clear"></div><div id="error-message-intro1"></div></div>
<div class="ccms_form_element cfdiv_text" style="display: none" id="intro2_container_div">
<label for="Intro2">Voornaam intro</label><input id="Intro2" maxlength="150" size="30" class="" title="" type="text" value="" name="Intro2" />
<div class="clear"></div><div id="error-message-intro2"></div></div>
<div class="ccms_form_element cfdiv_text" style="display: none" id="intro3_container_div">
<label for="Intro3">Achternaam intro</label><input id="Intro3" maxlength="150" size="30" class="" title="" type="text" value="" name="Intro3" />
<div class="clear"></div><div id="error-message-intro3"></div></div>
<div class="ccms_form_element cfdiv_text" style="display: none" id="intro4_container_div">
<label for="Intro4">EGA-HCP Intro</label><input id="Intro4" maxlength="150" size="30" class="" title="" type="text" value="" name="Intro4" />
<div class="clear"></div><div id="error-message-intro4"></div></div>
<div class="ccms_form_element cfdiv_text" style="display: none" id="intro5_container_div">
<label for="Intro5">Lid van</label><input id="Intro5" maxlength="150" size="30" class="" title="" type="text" value="" name="Intro5" />
<div class="clear"></div><div id="error-message-intro5"></div></div>
In the EVENTS tab, I added the Load JS, and put thsi code in:
window.addEvent('domready', function() {
$('intro1').addEvent('change', function(event) {
var e = new Event(event);
if (e.target.value == 'Ja') {
$('Intro2').getParent().setStyle('display', 'block');
$('Intro3').getParent().setStyle('display', 'block');
$('Intro4').getParent().setStyle('display', 'block');
$('Intro5').getParent().setStyle('display', 'block');
} else {
$('Intro2').getParent().setStyle('display', 'none');
$('Intro3').getParent().setStyle('display', 'none');
$('Intro4').getParent().setStyle('display', 'none');
$('Intro5').getParent().setStyle('display', 'none');
}
});
});
Now, with the debugger I get the following response:
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => PITCHenPUTT
)
Validation Errors:
Array
(
Hope you can give me a further push to get this working again....
)