Hello,
I'm trying to make a form that will serve as a survey. What I need to know is how do I display the thank you message accordingly?
Example.
If the user answered "Yes" and clicked submit, thank you page should only load contents for "Yes".
If "No", then load thank you page for "No".
Thanks.
I'm trying to make a form that will serve as a survey. What I need to know is how do I display the thank you message accordingly?
Example.
If the user answered "Yes" and clicked submit, thank you page should only load contents for "Yes".
If "No", then load thank you page for "No".
Thanks.
Hi digitalbot,
There are two main ways to do it. If the messages are completely different add an Event Switcher to the On Submit event of your form; create a new event list yes,no; add PHP to return the value of the radio button like this
If the message is mostly the same but a few parts are different you can build the message template in a Custom Code action using PHP to choose which parts are used in which case.
Bob
There are two main ways to do it. If the messages are completely different add an Event Switcher to the On Submit event of your form; create a new event list yes,no; add PHP to return the value of the radio button like this
<?php
return $form->data['radio_button_name'];
?>
Add a Display Message action to each of the On Yes and On No events.
If the message is mostly the same but a few parts are different you can build the message template in a Custom Code action using PHP to choose which parts are used in which case.
Bob
This topic is locked and no more replies can be posted.