I just don't know how to do what I want.Thanks!!!Rick"> Stop a form with PHP in DB Record Loader - Forums

Forums

Stop a form with PHP in DB Record Loader

momentis 04 Feb, 2013
I have a form which opens a user's record in a database for editing purposes. There is a field in the table that the user can set indicating that the form is complete and ready for submission. Once a user sets this flag, I do not want them to be able to access the form again to edit the data. In the On Load event, using the DB Record Loader action, I can check for the value of this field in On Record Found. Should this value come back as a "1" (meaning the user has indicated that the data is complete) how can I stop the display of the form and show a message?

I can use the following in a custom code action in the On Record Found:
<?php
$completed = $form->data['reg_good'];
if ($completed == 1) {

} else {}
?>


I just don't know how to do what I want.

Thanks!!!
Rick
GreyHead 09 Feb, 2013
Hi Rick,

Please see this FAQ for ways to do things conditionally.

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