Handbook · When a field is edited

Cookbook: when a field is edited

Where in the UI. Structure: a script plus an Edit filter on the element. Watch the fields that should count; connect the filter to the script.

  1. Write a script that sets a category “Stale” boolean to false (or shows a toast).
  2. Add an Edit filter. Watch the item field Title (and any other refs that should count as “an edit”).
  3. Connect the filtered event to the script. Do not fire on every keystroke of unrelated fields.
  4. Preview: change the title; the script should run. Change an unwatched field; it should not.