Buy Now
Sign in

Message - The form has been submitted successfully?

ihtus , July 01 2010, 19:54
I
ihtus 17
July 01 2010, 19:54 #53937
Hello
I am new to ChronoForms.
I have installed it, and wonder how can I get a message like "The form has been submitted successfully" after the user press the submit button?
Thank you!
M
magicsun 4
July 01 2010, 20:01 #53939
Inside Form Management you click on the name of the form to open all the options etc.

Click on the tab "Form Code" and expand the field for "On Submit code - after sending email:
(May contain PHP code with tags)"

Fill in the text there and save it. Now when submitting a form, the text you have filled in will appear after submitting.
I
ihtus 17
July 01 2010, 21:04 #53940
thanks! I will try that
I
ihtus 17
July 01 2010, 21:13 #53941
Is it possible to have not only the message "The form has been submitted successfully", but also below the form?

I tried to put this link Redirect URL: index.php?option=com_chronocontact&chronoformname=Contact_Form

And after the form is sent i see the form, but no message "The form has been submitted successfully"

If the Redirect URL field is empty, I see only the message "The form has been submitted successfully"

Is it possible to have not only the message "The form has been submitted successfully", but also below the form?

Thanks in advance!!!
GreyHead 64
July 02 2010, 09:15 #53963
Hi ihtus,

You can put the Form url in the ReDirect URL box, that will reload the form OK. You could use a system message to show a thnak you messaage - that will appear above the form though.

To get a message to appear below you could add something to the ReDirect URL like &thanks=1 and then use some conditional PHP in the Form HTML to show a message if that value is in the URL.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
G
gpseymour 8
July 12 2010, 16:00 #54529
"magicsun":
Inside Form Management you click on the name of the form to open all the options etc.

Click on the tab "Form Code" and expand the field for "On Submit code - after sending email:
(May contain PHP code with tags)"

Fill in the text there and save it. Now when submitting a form, the text you have filled in will appear after submitting.


Bob, it's me again.

I've inserted a simple "Thank you." message in this code field, but it doesn't seem to be doing anything. What exactly should happen when they submit the form? Should they see a dialog box, or what? For now, I've just created a destination page to carry the message. You can see what I've done here: http://www.gerryseymour.com/apply.html

The onsubmit (after email) is set to display a message (as well as having the destination page).
GreyHead 64
July 12 2010, 16:05 #54530
Hi gpseymour,

They will see whatever HTML + PHP you put in the OnSubmit Code boxes - unless you redirect them so some other page in which case they will see that page

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
G
gpseymour 8
July 12 2010, 16:56 #54535
OK, it sounds like my easiest answer, then, is to just use a redirect to a "thank you" page. My quick attempts at coding something failed, though I'm pretty sure it's not a problem with CF, but a problem with my understanding.