This topic is locked

Changing a Status Field on form save

11/13/2007 4:24:22 PM
ASPRunnerPro General questions
S
swiersman author

I am having a problem with v5.1 that I did not have in previous versions.
Scenario:
User comes in and fills out form using ADD interface. The STATUS field is populated with "Submitted" when they hit the Save button by the ADD setting of Default "Submitted". That works good.
Reviewer comes in thru EDIT interface and reviews the above form. When he hits the Save button I would like the STATUS field to change to 'Reviewed". In the older versions I could set the EDIT field default to change it.
How do I perform in v5.1 since you can only set defaults for ADD actions in V5.1?
Thanks,

Sergey Kornilov admin 11/13/2007

Default values never worked on the Edit page.
You can use BeforeEdit event and the following code:
dict("Status")="Submitted"