Form Submissions

deltronzero 07 Mar, 2009
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?
deltronzero 08 Mar, 2009
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.
Max_admin 08 Mar, 2009
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 08 Mar, 2009
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
deltronzero 08 Mar, 2009
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.
istani123 30 Mar, 2009
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!
Max_admin 30 Mar, 2009
it should work fine then, can I see the form somewhere ?

Regards
Max
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.