Help

Re: Run Script on field change

2931 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Matthew_Moran
7 - App Architect
7 - App Architect

I didn’t see this discussed but it seems like something that would be extremely valuable.

Is there a way to run a script upon leaving a field or when a field value changes?

7 Replies 7

Hi Matthew,

There is now as long as you have some development skills in Javascript.

Matthew_Moran
7 - App Architect
7 - App Architect

I saw this but is it active? I don’t like the idea of needing to have a view to catch changes to X or Y field. Perhaps a generic view based on modified date for a short period - so that it re-enters that view on any change.

But being able to trigger code based on any given field changing would be far more elegant and powerful. Common actions should be captured - new record, deleting a record, entering bad data, etc.

Yep - until granular events are supported, this (or many external approaches) are the options.

This limitation will lead to many new views being created that could be avoided with your elegant approach. But, this is a significant step forward and it’s beta, so the dev team is waiting to hear your input.

Yes, but you need to request access to the beta using the form listed on the linked thread. I’ve been using it for a bit, and it’s pretty slick. However, I agree that a more granular trigger system would be nice.

This is definitely possible with the current setup. And while the text in that linked thread only briefly mentions it, new records can also be triggers. I’m hopeful that the trigger options will expand over time, but how quickly that happens is unknown.

I’ve requested access. We’ll check it out. Thanks for the responses.

Andrea
5 - Automation Enthusiast
5 - Automation Enthusiast

Can i have access to this feature please?
I need to trig a script when values change too.
Thanks

The trigger for running an automation when a field is updated should now already be available to everyone.

Note however, that you have to be careful when using this trigger, as every key press is considered an “update” to the field. Also, if a record is created via a form or an API, the fields are not considered to be “updated” with their initial values.