How do I set field values on value change of predefined fields?
Here's how you make dependent fields auto populate when the default or custom field's value changes:
- Expose the fields for which you need to set the value in a dynamic form layout.
- Navigate to the Create Work order Variables section.
- Add an event listener with an action chain to transientCustomerWO(create page)/
NewWoTransient
on the Edit page. - Add a condition if the condition to check that the custom property is changed (By comparing $variables.event.oldValue.<Fieldname> !== $variables.event.value. <Fieldname> )
- Add an assign variable to set the new value to Field in dynamic form transient variable (transientCustomerWO.<Fieldname> = Value & customerWorkOrders.<Fieldname> = value (create page)/NewWoTransient.<Fieldname> = value & NewWO.<Fieldname>= value (edit page)).