WSForm.setCompValue method

Description

Use WSForm.setCompValue to set the value of a component on the form.

Syntax

WSForm.setCompValue(componentName, value, callbackFn)

Parameters

This table describes the method parameters.

Name Type Description
componentName String Specify the name of a component on the current form.
value String Specify the new value to assign to the component.
callbackFn Function Optionally, specify this function to call when the value of the component has been set.