Select to view content in your preferred language

Make a question conditionally required

880
2
Jump to solution
11-29-2023 05:11 AM
MariusVerdes
Regular Contributor

Hello,

I am trying to make a few questions from my survey to have the volume/area input required if the repeat has been answered. I have tried something based on the threads below, but I was able to make the area/volume conditionally required if a certain value from the repeat is selected, not if anything is chosen from that repeat. Does anyone know how I can achieve something like this?

I found the following thread with the same topic, but I wasn't able to resolve my situation based on them. The threads are: https://community.esri.com/t5/arcgis-survey123-questions/make-a-question-required-conditionally-base... https://community.esri.com/t5/arcgis-survey123-questions/required-conditional-questions-survey-123/m... 

Attached is the current xlsx form of my survey.

Thanks in advance for any tips/suggestions!

P.S. If more details are needed, please let me know.

0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

You have this formula selected(${nextrequired},"yes") but no field called nextrequired?

In general though to check for any value you can do ${somefield} != '' or string-length(${somefield}) > 0

Hope that is what you were looking for.

View solution in original post

0 Kudos
2 Replies
DougBrowning
MVP Esteemed Contributor

You have this formula selected(${nextrequired},"yes") but no field called nextrequired?

In general though to check for any value you can do ${somefield} != '' or string-length(${somefield}) > 0

Hope that is what you were looking for.

0 Kudos
MariusVerdes
Regular Contributor

Hi @DougBrowning,

Thanks a lot, the formula "string-length(${somefield}) > 0" was exactly what I needed.

As for that nextrequired field, I forgot to delete it after I saw the thread in the Community.