Formatting a table in a survey
You can use a table in a legacy survey to collect multidimensional responses from a user. By choosing a format that is specific to the type of information that you are gathering, you can help users provide complete answers.
You must purchase a separate license before using survey functionality in your application.
For example, you can use a table to ask users which family members they want to add to an insurance policy. Each row corresponds to a person and each column stores a different piece of information, such as first name or level of coverage. You can use different types of fields in each column, based on the type of information that you need.
To format a table in a survey:
-
Click to open the Survey Management landing page.
- In the Type column, find a legacy survey, and then click the name of the survey.
-
Ensure that your survey has at least one question that uses a table format.
-
Click the name of a question with Type set to Table.
-
In the Edit question dialog box, press the Down Arrow key in the Table Class field and select the name of a class that defines properties that you can reference in the columns and rows of the table.
-
For each column in the table, repeat the following steps:
-
Click the Add row icon.
-
In the Column label field, enter a heading for the column.
-
In the Column property field, press the Down Arrow key and select the name of a property that stores the answer that users provide.
-
Change the format of the fields in the column from a text box to a different format, such as a list or series of radio buttons.
-
In the Display type list, select a format.
-
Expand the List configuration section.
-
For each choice that the user can select, click the Add row icon and enter values in the following fields:
-
Display value - The label for the choice.
-
Value - The value that is stored on the clipboard when users select the choice.
-
-
-
-
Define the rows in the table.
To use a specific number of rows:
-
In the No of rows list, select Fixed.
-
For each row in the table, click the Add row icon and enter values in the following fields:
-
Answer label - The heading for the row.
-
Answer row Id - The unique identifier on the clipboard for the row.
-
To allow the user to choose the number of rows:
In the No of rows list, select Dynamic.
To create a row for each item in a repeating field group:
-
In the No of rows list, select Property Based.
-
In the Aggregate property (PL/PG) for rows field, press the Down Arrow key and select a property that stores a page list or page group.
-
In the Label property field, press the Down Arrow key and select the property that stores the value of the label for the row.
-
-
Click Save.