Example: If a wizard is configured and at a done button, a execute script is configured to log values written on a pageContext. When you execute the script, an error of Cannot read properties of undefined (reading 'setFieldValue') get displayed. If you reuse the form on the designer and execute the same script, it logs successfully without throwing an error. This can also be tested just adding a button on a dialog view and configure to execute a script
Console/set the values onUpdate and render the dialog form, it throws the same error
Cannot read properties of undefined (reading 'setFieldValue')
get displayed. If you reuse the form on the designer and execute the same script, it logs successfully without throwing an error. This can also be tested just adding a button on a dialog view and configure to execute a scriptSteps to reproduce the behavior:
Cannot read properties of undefined (reading 'setFieldValue')
Expected behavior The value should be set successfully without throwing an error