Survey123 connect-
We have yes/no questions connected to dairies that can have either cows, goats or sheep.
When a dairy is chosen from a list, the species for that dairy shows as readonly
4 milk tests are standard for each species SBC, SCC, LPC, COLI
Cow tests: SBC, SCC, LPC, COLI, DELVO
Sheep tests: SBC, SCC, LPC, COLI, CHARM
Currently the form defaults to all tests checked for both animals and requires the user to select "NO" if a test does not apply to an animal because it gives the user the ability to check or uncheck yes or no.
How can I assign specific tests to specific animals when a dairy is chosen?
Solved! Go to Solution.
You can have many select_multiple questions, each with their own choice list and relevancy. You can then use a calculation to pick the correct question based on the animal type and store the data in one field for easy processing. The downside is you either have to keep the redundant fields in your dataset or bind them to null, which can cause issues if you need to edit existing data through the Inbox.
Thanks David!
Is the list that "milk_animal" question returns a comma delimited list. If so you can try using the relevant field for each test and put "selected(${milk_animal}, '<animals>')" then those question will only show when the applicable animal is in the list.
Something like this:
Thank you Neal!