Select to view content in your preferred language

Specific tests for specific species

581
5
Jump to solution
01-15-2026 08:40 AM
SueBoelk
Emerging Contributor

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?

 

0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
MVP Regular Contributor

Something like this:

Neal_t_k_0-1768502510634.png

 

 

View solution in original post

0 Kudos
5 Replies
DavidSolari
MVP Regular Contributor

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.

0 Kudos
SueBoelk
Emerging Contributor

Thanks David!

0 Kudos
Neal_t_k
MVP Regular Contributor

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.

0 Kudos
Neal_t_k
MVP Regular Contributor

Something like this:

Neal_t_k_0-1768502510634.png

 

 

0 Kudos
SueBoelk
Emerging Contributor

Thank you Neal!

0 Kudos