mohan-nishit / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

relevant conditional check is not working in group 'field-list' #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
" I wanted to display set of questions inside the group with field-list option 
enabled (i.e. display all question on a single screen) where I'm checking the 
relevant condition inside group, based on the input given from previous 
question, The conditional check is not working. the same condition will work 
perfectly if I display/remove the 'field-list'"

Original issue reported on code.google.com by yanokwa on 29 Jun 2011 at 3:50

Attachments:

GoogleCodeExporter commented 9 years ago
fixed by Revision: 3b0cb3a31143.

relevancy is now honored within a multi-question screen.  If individual 
questions are set to not-relevant, they won't appear.

Original comment by carlhart...@gmail.com on 1 Jul 2011 at 5:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
if we check relevancy for each multi-question, we are getting blank screen with 
group name displayed on top.

Example:
<bind nodeset="/data/group/name" type="string" required="true()" 
relevant="(/data/age < 18)"/>
<bind nodeset="/data/group/age_check" type="int" required="true()" 
relevant="(/data/age < 18)"/>

Original comment by odk.to...@gmail.com on 5 Jul 2011 at 9:36

GoogleCodeExporter commented 9 years ago
//Issue: Inside the field-list GROUP, if relevant conditions are not matching 
we are getting empty screen
//Added "&& mFormController.getQuestionPrompts().length != 0" to reslove the 
issue
mFormController.getQuestionPrompts().length != 0

private void showNextView() {
....
case FormEntryController.EVENT_GROUP:
if (mFormController.indexIsInFieldList() && 
mFormController.getQuestionPrompts().length != 0) { 
..
}
}

private void showPreviousView() {
while (
... && mFormController.getQuestionPrompts().length != 0)) {
}
}

Original comment by odk.to...@gmail.com on 13 Jul 2011 at 6:55

GoogleCodeExporter commented 9 years ago
Reopening for verification of whether this change is needed so it doesn't get 
lost.

Original comment by wbrune...@gmail.com on 13 Jul 2011 at 7:36

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 334f47ac6908.

Original comment by carlhart...@gmail.com on 27 Sep 2011 at 9:30