Changing the associated variable of a form element

The associated variable of a form element takes on the value specified for the form element chosen by the user. For example, if a radio button group's associated variable name is Age_Range, and within it are 5 radio buttons with the options Under 21, 21-30, 31-45, 45-60, and Over 60, then when the user selects from the available radio buttons, the Age_Range variable will take on the value of that radio button. Suppose the user selects 21-30, then Age_Range = 21-30. If no selection is made, the variable remains empty (has no value).

Variable name conflicts might exist if you are attempting to insert or paste objects from another project or a library object that might contain several associated variables. If conflicts are encountered, you will be prompted whether to automatically create new variables before adding them to the project, automatically use the existing variables, or view the conflicting names and individually select the new variable names. For more information, see Resolving variable name conflicts.

To change the associated variable of a form element:

  1. Do one of the following:

    The Properties ribbon is displayed.

  2. Specify the associated variable name in the Variable Name field in the Value group. The variable will be used to store the user’s selection within the corresponding form element. The variable can be accessed from anywhere in the project.

    The name/value pair submitted from the published project using email, a CGI script, or Google Drive is the form element's associated variable name and its value.

See also: Submitting test, survey and form results to CGI
  Answer and response variable value formats

Knowledge Base | Training | Support
© Copyright ELB Learning 2025