Toggle menu

helper.utilQueryActionProperties(fieldName, contextVariables)

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

ArgumentTypeDescription
fieldNameString, requiredThe name of the action field
contextVariablesObject, requiredSkeleton 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
}]

Last modified on March 06, 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon