SignField
This function will add a signature of the current user to a specified field. Optionally, additional comment and section name can be provided. If the section name is specified, the signature becomes a section signature, otherwise it is a full case signature.
SignField(fieldName);SignField(fieldName,comment);SignField(fieldName,comment,sectionName);Function arguments
Dział zatytułowany „Function arguments”- fieldName – (String) a name of the field to which signature is to be added;
- comment – (String) [optional] an additional comment to signature;
- sectionName – (String) [optional] a name of the section to be signed. If not used, signature becomes a full case signature, otherwise it is a section signature.
Return value
Dział zatytułowany „Return value”This function returns Boolean. This function always returns true.
Examples
Dział zatytułowany „Examples”Example 1
Dział zatytułowany „Example 1”This will add a signature of the current user to ’field1′ case field.
SignField("field1");Example 2
Dział zatytułowany „Example 2”This will add signature of the current user to ’field1′ case field along with some comment.
SignField("field1", "some comment");Example 3
Dział zatytułowany „Example 3”This will add signature of the current user to ’sectionX’ section of ’field1′ case field along with some comment.
SignField("field1", "some comment","sectionX");