|
7542 12/17/2011 |
Why create a button, is it not easier for the user to click the submit button (renamed to what you want) then run an update event based before add |
S
|
stec5345 author 12/18/2011 |
That is good advice but may not work as the final desired affect. I will give it a shot but would still like to know how to do this with a button so that I can have more options that just submit from the edit view. There may be a submit which does what you say but I may want to bypass the submit and allow for 2-3 options for the user to do. |
C
|
cgphp 12/18/2011 |
Why not add the "Accept" button beside each record on the list page? The status field will be updated with an ajax call. |
L
|
laonian 12/20/2011 |
[size="3"] |
S
|
stec5345 author 1/15/2012 |
[size="3"] [size="3"][color="#0000FF"]2. Then add the following in the Before record updated event of your Edit page:[/size] $values["status"]='Signed'; [size="3"]3. Add the redirect link in the After record updated event of your Edit page:[/size] header("Location: dictationqueue_list.php?a=return"); exit();
|