This topic is locked

Alter field value in edit page before display

3/1/2015 9:50:14 PM
PHPRunner General questions
S
Stucco author

Hi - I have a field that I want the user to re-enter any time the edit a record. It is a required field.
I would like to remove the value when they load the edit page. If they cancel or click back, the old value would be retained.
I am trying to use the edit page -> before display event for this. It should be pretty simple, however it just isn't taking my value. The manual says about $values, 'You can read and write to the array.'
I am just trying the line $values["forecasted_departure"] = ""; The variable changes from the original to the empty value, but it doesn't affect what is displayed in the field on the edit page. I am not using an alias in the sql query.
Thanks!