Hi,
I got a two page form (v4) where first form passes session data to the second one.
What's the best way to prevent users from accessing the second form directly? I tried using Server Side Validation to check if the session data is not empty, but it doesn't seem to work.
I got a two page form (v4) where first form passes session data to the second one.
What's the best way to prevent users from accessing the second form directly? I tried using Server Side Validation to check if the session data is not empty, but it doesn't seem to work.
Hi ashwinuae,
You need the check in the On Load event. Drag a Custom code action and move it up after the 'Session to Data' action then add a check there. I'm not sure what you check but something like this
Bob
You need the check in the On Load event. Drag a Custom code action and move it up after the 'Session to Data' action then add a check there. I'm not sure what you check but something like this
<?php
if ( !$form->data['xxx'] ) {
$mainframe->redirect('url_for_first_form');
}
?>
Bob
This topic is locked and no more replies can be posted.