Configure a widget to perform a post-on-change

When the value of the widget changes, run a Gosu expression, and then redraw the screen.

Procedure

  1. In Guidewire Studio, in the PCF editor, edit the widget that you want to perform a post-on-change.
  2. In the Properties tool window, click the PostOnChange tab.
    If there is no PostOnChange tab, then the widget cannot perform a post-on-change.
  3. Ensure that the Enable Post On Change check box is set.
    Note: If you clear the Enable Post On Change check box, then post-on-change is disabled for the widget, and the post-on-change properties for the widget are permanently deleted. If you set the check box again, post-on-change for the widget is enabled with empty properties.
  4. Set the onChange property to the Gosu expression to execute when the widget value changes
    Note: The deferUpdate property preserves certain legacy behavior that may be desired after an application upgrade. Do not set this property for new usages of post-on-change.
  5. Set the deferUpdate property to control when the widget is updated.

What to do next

See also