Developer Documentation Library > Interview templates > UXUI custom properties > uxui_question_collapsible
 
uxui_question_collapsible
Use uxui_question_collapsible to put a question into a collapsible section.
When the page is first displayed, the section is expanded. If the uxui_question_collapsible property is set to auto, the section collapses when the question has been completely answered and focus is removed from the question.
If this property is used with a grid, the entire grid collapses and expands. To automatically collapse or expand grid iterations, see the CollapsibleGrid.htm HTML control.
Possible values
auto|manual
Applies to
Any question type
Example
CollapsibleBlock_Section1 "Section 1"
[
uxui_question_collapsible = "auto"
]
block fields
(
RatingQ "How would you rate it?"
categorical [1..1]
{
Good "Good",
Neutral "Neutral",
Poor "Poor"
};

Comments "Please explain why you gave the above rating."
text;

);

CollapsibleGrid_Section2 "Section 2"
[
uxui_question_collapsible = "auto"
]
loop
{
Statement1 "Statement 1",
Statement2 "Statement 2"
} fields -
(
RatingQ "How would you rate it?"
categorical [1..1]
{
Good "Good",
Neutral "Neutral",
Poor "Poor"
};

) expand;

PageCollapsible2 ""
page(
CollapsibleBlock_Section1,
CollapsibleGrid_Section2
);
See
UXUI custom properties