Select to view content in your preferred language

Nested repeat automatically 'minimal' appearance with pages dynamic-grid

80
3
yesterday
SFM_TravisBott
Frequent Contributor

I have a survey using the pages dynamic-grid theme, and in that survey I have several repeats, including one nested pair. The issue: all repeats are automatically 'minimal' appearance, and it sabotages some required questions in the nested repeat. How do I force a non-minimal appearance on repeats with the pages dynamic-grid?

Basic layout is below. There are several additional groups within the repeats for different parts of the survey. 

typenameappearance
begin grouppageFourfield-list w1
begin repeatTreatmentsw1
begin grouptreatmentsSurveyGroupw2
geopointtreatments_pointw2
texttreatmentNamew1
textprojectNamew1
select_one YesNopositiveImpactw2
begin repeattreatmentPhotosw2:2
image**treatmentPhotow2
textimageCaptionw1
textimageLocationw1

end repeat

  
end group  

 

The functionality I need: the image question is required if the ${positiveImpact} = "Yes". This works, but only if one clicks the plus sign to add an image to the repeat question. This would be resolved if the image repeat section was expanded by default, btu it's not with the w2:2 appearance (which has seemed necessary to get it to show up at all). This means users can technically submit records without the image repeat filled out, despite it having a positive impact.

If a survey is opened from Sent folder, though, the repeat is expanded by default. 

SFM_TravisBott_0-1749834858540.png

SFM_TravisBott_1-1749834885735.png

 

 

0 Kudos
3 Replies
Neal-Kittelson
Frequent Contributor

This might help:  https://community.esri.com/t5/arcgis-survey123-questions/s123-repeat-always-starts-minimal-after-sat...

Do you  have any relevancies on that questions/repeat?

0 Kudos
SFM_TravisBott
Frequent Contributor

@Neal-Kittelson I do have relevancies on it. I have a bit of a pickle because I like relevant because it will scrub out answers and not take a default empty record if I don't want them.

What I've done as a workaround is I've used a dummy question to count values in the repeats. That dummy question is set to relevant for the conditions I want. Then I have a constraint on that dummy question for if the count is equal to 0.

So the user right now doesn't get immediate feedback but they won't be able to submit the survey without the conditions being met (if a treatment was involved they must add treatments in the repeat, and if the treatment had a positive impact it must have a photo).

Neal-Kittelson
Frequent Contributor

Sounds like a good solution,  I think something similar has been mentioned elsewhere but I can't find it at the moment.

0 Kudos