How do I redirect to a page after submit ?

nitromedia 15 Jun, 2011
Hi,
I'm using ChronoForm V4 and i'm trying to redirect the user to another page after submit. But I don't know how.

In Advanced Mode, I tried to use the Redirect User in the On Submit Event (after email and db save) but it don't work. When I submit the form, he returns me to the same page I was, but the form had disapear.

Do I have to download a plugin or something ?!

Help!
GreyHead 15 Jun, 2011
Hi nitromedia ,

ReDirect User is the correct action. What have you got in the Target URL box?

Bob

Bob
GreyHead 15 Jun, 2011
Hi nitromedia,

Should be OK. I wonder if the form isn't submitting correctly at all??

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
nitromedia 15 Jun, 2011
The form seems to be working, the data are saved in the database and i'm receiving the email.

Could it be an PHP issue ?
nitromedia 15 Jun, 2011
I have another question.

How do I hide the empty field in the email template ?

Example {input_checkbox_1}
GreyHead 15 Jun, 2011
Hi nitromedia,

You use a Custom Code action to set a default (null) value.
<?php
if ( !$form->data['input_checkbox_1'] ) {
  $form->data['input_checkbox_1'] = '';
}
?>

Bob
nitromedia 15 Jun, 2011
Works like a charm, thanks a lot Bob!!

Back to the first problem, Redirect.

In fact i don't know if it could help but when I hit Submit, chronoform reload me the same page i was on, but with the &event=submit parameter in the URL.

Could it mean something ?
GreyHead 21 Jun, 2011
Hi nitromedia,

The url with &event=submit is the normal URL that is shown after a form is submitted. It sounds as though the redirect isn't working and you are being shown a ChronoForms 'Thank You' page with no 'Thank You message' set - so you see an empty page.

Bob
This topic is locked and no more replies can be posted.