SignField
This function will add signature of current user to specified field. Optionally, additional comment and section name can be specified. If section name was specified, signature becomes section signature, otherwise it is a full case signature.
Syntax
SignField("fieldName");
SignField("fieldName","comment");
SignField("fieldName","comment","sectionName");
Function arguments
- fieldName – (String) The name of the field to which signature is to be added.
- comment – (String) Additional comment to signature
- sectionName – (String) The name of the section to be signed. If not used, signature becomes a full case signature, otherwise it is a section signature.
Return value
This function returns Boolean.
This function always returns true
Examples
Example 1:
This will add siganture of current user to 'field1′ case field.
SignField("field1");
Example 2:
This will add siganture of current user to 'field1′ case field along with specified comment.
SignField("field1", "some comment");
Example 3:
This will add siganture of current user to 'sectionX’ section of 'field1′ case field along with specified comment.
SignField("field1", "some comment","sectionX");