NSOA.context.getParameter(name)

Use this function to get the value set for the specified parameter.

See Script Parameters.

Parameters

name {string} [required] — The name of the parameter.

Note:

Use the Script Parameters section in the Scripting Studio or the Scripting Center to lookup the parameter name to use.

Returns

The value of the specified parameter.

Units Limit

1 unit

For more information, see Scripting Governance.

Since

April 18, 2015

Example

This example shows a field value being checked against a parameter value.

          // return if new stage is not closed
if (NSOA.form.getValue('project_stage_id') !=     
    NSOA.context.getParameter('ProjectClosedStage'))
return; 

        

See Prevent closing a project that has open issues.