cfParticipant
I’m realizing that a lot of the things I am trying to do with scripts could be better accomplished with less complexity if there was a way to register a script to run on specific events. Specifically record creation and record change. This could two options next to “Ask before running” for “Run when records created” and “Run when records change” and the “record” binding would be said mutation.
Ya, that’s a good idea. I believe Sam asked for something like that a while ago. He wanted to be able to have triggers in Tap Forms for running scripts. Right now the triggers are if a field value is modified, a script runs.
Yes, this is another one on my backlog; ideally a pre and post hook too as well as more metadata about what/why something is triggered for debugging purposes. I’ve got a quirk right now where scripts are firing more than I expect them to be and it’s confusing.
cfParticipant
Even though there already exist triggers for specific fields I think there’s still value in having a trigger for any record mutation, separate from field scripts. I have a few forms where fields depend on each other and need to be refreshed in the right order, if a trigger simply fired on any change I could just go through all fields and update them. Of course record. creation/deletion would be the most valuable of them all since there’s really nothing like it right now.