Navigation:  PHP API (Workflow) >

Editing the value of a form field

Previous  Top  Next

To edit the value of a form field, use the setEntityAttributeValue method passing the parameters: Entity ID # in which the form belongs, the entity attribute ID # and the value.

 

setEntityAttributeValue("Entity ID #", "Entity attribute ID #", "Value")

 

Example for attribute of the Boolean type:

$workflow_api->setEntityAttributeValue("ENT01", "fgboolean", "1");

1 – Check, 0 - Uncheck

 

[Example for attribute of the Time type:

$workflow_api->setEntityAttributeValue("ENT01", "hrtime", "20:00");

 

Example for attribute of the Whole number type:

$workflow_api->setEntityAttributeValue("ENT01", "vlinteger", "123456");

 

Example for attribute of the Text type:

$workflow_api->setEntityAttributeValue("ENT01", "nmtext", "ABC");

 

Example for attribute of the Date type:

$workflow_api->setEntityAttributeValue("ENT01", "dtdate", "2019-07-31");

 

Example for attribute of the Decimal number type:

$workflow_api->setEntityAttributeValue("ENT01", "vlnumber", "1234.56");