NexJ Logo

Form fields


Use form fields in field control formulas to pull information from questions in a business process or call script form.

Field controls for global properties

When you add field control values for a global property, you must use the following notation:
$GLOBAL.<question_name>

question_name is the Reference Name from the question that you want to reference. You can find the reference name of the global property by clicking the Global Properties tab, which is in the Business Processes tab on the Customize workspace.

Field controls for questions

When you add field controls to a question in a form, you might want to refer to information from another question. For example, if you want to show a question only when the contact is married, you can create a field control formula that checks a previous question in which you entered the contact's marital status.

You can enter form fields in an expression using the following methods:

  • If you are adding field controls to a question that is on the same page as the question you want to reference, use the notation:

    $CURRENT_PAGE.<question_name>

    question_name is the Reference Name from the question that you want to reference. You can find the reference name of the question by editing the question in the form.

  • If you are adding field controls to a question that is on a different page than the question you want to reference, use the notation:

    $<node_name>.<question_name>

    is the value in the Name field for the page node, and question_name is the Reference Name from the question that you want to reference. You can find the name of the page node by editing the flow of the form. You can find the reference name of the question by editing the question in the form.

Examples

Assume that you have a form in which there is a question with the reference name marital_status on a page named page_1.

  • If you want to check from a different question on the same page whether marital_status was answered as Single, you can use the expression IsIn($CURRENT_PAGE.marital_status, "Single").
  • If you want to check from a question on a different page whether marital_status was answered as Single, you can use the expression IsIn($page_1.marital_status, "Single").