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.
type | name | appearance |
begin group | pageFour | field-list w1 |
begin repeat | Treatments | w1 |
begin group | treatmentsSurveyGroup | w2 |
geopoint | treatments_point | w2 |
text | treatmentName | w1 |
text | projectName | w1 |
select_one YesNo | positiveImpact | w2 |
begin repeat | treatmentPhotos | w2:2 |
image** | treatmentPhoto | w2 |
text | imageCaption | w1 |
text | imageLocation | w1 |
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.
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?
@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).
Sounds like a good solution, I think something similar has been mentioned elsewhere but I can't find it at the moment.