I'm hoping someone can help me with what is probably a fairly easy question.
When a user clicks on my submit button, i want it to do 2 things:
1. check the value of a field to ensure that it is >=0
2. on successful submission, i want it to display a thankyou message
How do i do this?
When a user clicks on my submit button, i want it to do 2 things:
1. check the value of a field to ensure that it is >=0
2. on successful submission, i want it to display a thankyou message
How do i do this?
i've worked out how to get the thankyou message up, but i cant figure out how i get it to check the value of the field before it sends the email.
Hi deltronzero,
if it doesn't meet the case >=0 then you want the email disabled or the form to show some error message ?
Max
if it doesn't meet the case >=0 then you want the email disabled or the form to show some error message ?
Max
Hi deltronzero,
For (1) you can either add a JavaScript snippet to validate immediately, or a server-side validator using a PHP snippet in the box on the validation tab to validate on submission.
For (2) you just need to place some HTML(+PHP) in one of the OnSubmit boxes.
Bob
For (1) you can either add a JavaScript snippet to validate immediately, or a server-side validator using a PHP snippet in the box on the validation tab to validate on submission.
For (2) you just need to place some HTML(+PHP) in one of the OnSubmit boxes.
Bob
Thanks Bob.
I got it to work using a server side validation.
When the error comes up, it clears all of the fields and presents a blank form. is there any way to keep the previous data in the form when the validation fails?
Edit:
I found the try to republish option under the antispam menu and everything works fine. Problem sorted.
I got it to work using a server side validation.
When the error comes up, it clears all of the fields and presents a blank form. is there any way to keep the previous data in the form when the validation fails?
Edit:
I found the try to republish option under the antispam menu and everything works fine. Problem sorted.
I have the same problem - when Anti Spam symbols are incorrectly entered - the data from all fields is not republished.
My settings are:
Republish fields if wrong submission ? - Try to Republish
Enable Validation ? - YES
Validation Library - mootools
I am using 1 - required (not blank) validation for at least 10 fields... and the validation is working fine.
The form is created with Dreamweaver. All the forms have both names and ids.
I am using Chrono Forms 3.0 STABLE with Joomla 1.5.10
Do you have any ideas/suggestions? What am I doing wrong? Please advise!
My settings are:
Republish fields if wrong submission ? - Try to Republish
Enable Validation ? - YES
Validation Library - mootools
I am using 1 - required (not blank) validation for at least 10 fields... and the validation is working fine.
The form is created with Dreamweaver. All the forms have both names and ids.
I am using Chrono Forms 3.0 STABLE with Joomla 1.5.10
Do you have any ideas/suggestions? What am I doing wrong? Please advise!
it should work fine then, can I see the form somewhere ?
Regards
Max
Regards
Max
This topic is locked and no more replies can be posted.