IDEMSInternational / open-app-builder

PLH App Frontend
GNU General Public License v3.0
6 stars 25 forks source link

Using "this" in action lists #1735

Open esmeetewinkel opened 1 year ago

esmeetewinkel commented 1 year ago

Document usage of javascript this in action lists. Works for action lists to refer back to the item that triggered them.

E.g. changed | set_field: field_name: this.value

esmeetewinkel commented 1 year ago

See also: Use this.value when referring to changed action to pick the updated change value. Referring to @local will always be the value before the change

Originally posted by @chrismclarke in https://github.com/IDEMSInternational/parenting-app-ui/issues/1720#issuecomment-1385708834