Previous Topic: ca_pam_getTextFieldValue(_id)Next Topic: Data Sources


ca_pam_setTextFieldValue(_id, val)

Sets the value of a Text field.

Input Parameters
_id (string)

Specifies the unique identifier of the field for which to set a specific value.

val (string)

Defines the new value for the Text field.

Return Value

None.

Example

This example sets the top_vendors Text field to "I vote for vendor 3 because:"

ca_pam_setTextFieldValue('Form.top_vendors', 'I vote for vendor 3 because: ')

To continue this example, use ca_pam_getTextFieldValue('Form.top_vendors') after users enter their reasons to submit their full statements.

ca_pam_setTextFieldValue('Form.dynamic_field', ca_pam_getTextFieldValue('Form.top_vendors'))

This example returns the value of the top_vendors field and sets the dynamic_field to that value.

You can also find this function in the out-of-the-box content in CA Process Automation.

  1. On the Home page, click Browse Out-of-the-Box Content.
  2. Navigate to the User Interaction Forms folder, then 08 Populate Table SOAP WS: Populate Table SOAP WS.