Hi all,
I have been quite successful with processing a form, validating it, and sending it off nicely formatted.
I have hit a snag in trying to see which checkboxes are checked and based on that setting hidden form fields, to be displayed in the email that is mailed off.
I added this code to my validation routine:
Doesn't seem to work. I thought that I could set some POST values with the JavaScript and then display these in the email.
any help is appreciated. thanks...
I have been quite successful with processing a form, validating it, and sending it off nicely formatted.
I have hit a snag in trying to see which checkboxes are checked and based on that setting hidden form fields, to be displayed in the email that is mailed off.
I added this code to my validation routine:
if(document.forms.ChronoContact_Contact.Example.checked)
{
document.forms.ChronoContact_Contact.Services.value = "Example\n";
}
Doesn't seem to work. I thought that I could set some POST values with the JavaScript and then display these in the email.
any help is appreciated. thanks...
Hi,
I struggle with JavaScript so can't help with that and it's not something the ChronoForms supports out of the box. I'd probably do any post-processing after the form is submitted by hacking the code in the uploadandmail() function.
Can you give an example of what you are trying to do and I'll try out some ideas.
Bob
I struggle with JavaScript so can't help with that and it's not something the ChronoForms supports out of the box. I'd probably do any post-processing after the form is submitted by hacking the code in the uploadandmail() function.
Can you give an example of what you are trying to do and I'll try out some ideas.
Bob
Hi,
The above code should work yes, could you please try the getElementById('Example') ? assuming that your checkbox will have a unique Id too ?
Also when it comes to javascript issue, the best is to google it, you will get dozens of good results, try google "javascript .checked"
Feel free to share ur thoughts
Cheers
Max
The above code should work yes, could you please try the getElementById('Example') ? assuming that your checkbox will have a unique Id too ?
Also when it comes to javascript issue, the best is to google it, you will get dozens of good results, try google "javascript .checked"
Feel free to share ur thoughts
Cheers
Max
This topic is locked and no more replies can be posted.