Grouping Questions on a Single Screen with a 'relevant' test on first question

Hello,
I am developing a form, and I'm not sure what I want to do is possible. I
would like to group two questions on one screen. The first question is type
"select_one yes_no". I want the second question to be of type text, and to
show up if the user answers "no" to the first question.
Here is a sample of what my Excel file will look like:
type,name,label,appearance,relevant
begin group, test, test,field-list,
select_one yes_no,q1, Is the building accessible?,,
text,q2,Why is the building not accessible?,,selected(${q1}, 'no')
end group,,,,

When I select 'No' for the first question, the second question does not
show up on the screen. But, if I scroll forward and then back, the second
question shows up.

Is there a way to make the second question pop up immediately upon
selecting 'no' to the first question? Is there a way to refresh the screen
without swiping forward and then back?

Thank you for you help.

1 Like

Sorry, Steven, there is no way to do this. Relevance expressions are
evaluated only when the screen appears. Nothing will appear or disappear
based on within-screen choices.

Best,

Chris

··· On Mon, Dec 9, 2013 at 8:12 PM, Steven Hansen wrote:

Hello,
I am developing a form, and I'm not sure what I want to do is possible. I
would like to group two questions on one screen. The first question is type
"select_one yes_no". I want the second question to be of type text, and to
show up if the user answers "no" to the first question.
Here is a sample of what my Excel file will look like:
type,name,label,appearance,relevant
begin group, test, test,field-list,
select_one yes_no,q1, Is the building accessible?,,
text,q2,Why is the building not accessible?,,selected(${q1}, 'no')
end group,,,,

When I select 'No' for the first question, the second question does not
show up on the screen. But, if I scroll forward and then back, the second
question shows up.

Is there a way to make the second question pop up immediately upon
selecting 'no' to the first question? Is there a way to refresh the screen
without swiping forward and then back?

Thank you for you help.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

1 Like