Hi there,
I have Chronoforms installed on Joomla. In my form, I manually added a "select" which calls a JS function, defined in "Form Javascript" section, like below. This function repeats a field, based on select value.
Js:
This works fine. Fields are added as I choose select option.
The problem is when sending the email. With this changes, emails are not getting out.
Any clues?
Thanks in advance.
Regards,
Rui
I have Chronoforms installed on Joomla. In my form, I manually added a "select" which calls a JS function, defined in "Form Javascript" section, like below. This function repeats a field, based on select value.
<select name="ngroups" id="nGroups" onchange="addGroups()">
<option value=0>-choose-</option>
<option value=1>1 Groups</option>
<option value=2>2 Groups</option>
</select>
Js:
function addGroups(){
var x=jQuery("#nGroups").val();
if (x>0) {
shtml='';
for (i=0;i<x;i++) {
shtml+='<hr><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label" style="width: 150px;">Name:</label><input class="cf_inputbox" maxlength="150" size="30" title="" id="text_22" name="name'+i+'" type="text" /></div><div class="cfclear"> </div></div><br />';
}
jQuery('#target-div').html(shtml);
}
}
This works fine. Fields are added as I choose select option.
The problem is when sending the email. With this changes, emails are not getting out.
Any clues?
Thanks in advance.
Regards,
Rui