Returns an array of objects that contains of the name and value for all action properties defined by the specified field in the supplied context variables.
Executed
Server-side only.
Arguments
Argument | Type | Description |
---|---|---|
fieldName | String, required | The name of the action field |
contextVariables | Object, required | Skeleton processor context variables |
Returns
Array
Example
Imagine a form with an email action.
actions = helper.utilQueryActionProperties("EMAILFIELDNAME", context);
Returns:
[{
"name": "CLASS",
"value": "form, com.gossinteractive.community.form.actions.EmailAction"
}, {
"name": "EMAIL_SUBJECT",
"value": "Form Submitted"
}, {
"name": "EMAIL_TO",
"value": "support@gossinteractive.com"
}, {
"name": "EMAIL_CC",
"value": ""
}, {
"name": "EMAIL_BCC",
"value": ""
}, {
"name": "EMAIL_FROM",
"value": "test@testsite.com"
}, {
"name": "EMAIL_BODY",
"value": "test"
}, {
"name": "EMAIL_BODY_FORMAT",
"value": "HTML"
}, {
"name": "EMAIL_INCLUDEUPLOADS",
"value": "false"
}, {
"name": "EMAIL_GENERATEPDF",
"value": "false"
}, {
"name": "EMAIL_PDFNAME",
"value": "form.pdf"
}, {
"name": "EMAIL_PDFBODY",
"value": "{{{RENDEREDFORM}}}"
}, {
"name": "EMAIL_DATA",
"value": "{}"
}, {
"name": "_ACTIONPROCESSEDFLAG_",
"value": true
}]