When "Save as a copy" is clicked, Change field value

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

When "Save as a copy" is clicked, Change field value

Post by Alisson » 2020-09-03 19:20

Hi, in my table (vehicles) there is a STATUS dropdown field with values (NOT STARTED, IN PROGRESS, COMPLETED), when the value of this field is changed to COMPLETED, I'm hiding the DELETE and SAVE buttons, to avoid any changes, the only button left is the SAVE AS A COPY, is it possible to click on this button and the new copied data has the value of the STATUS changed to NOT STARTED? Allowing the user to edit this new copied data?

Thank you.

Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

Re: When "Save as a copy" is clicked, Change field value

Post by Alisson » 2020-09-03 19:42

Never mind guys, just figure it out than I can do that in the after_insert function.

Post Reply