Prepopulating a Relevant Questions

68
2
10-18-2019 02:47 PM
Highlighted
Occasional Contributor

We are collecting samples from both harvested deer and opportunistic deer. When Method = Check station, Headbox or Taxidermist, we want to populate the Acquisition Type field with "Hunter harvested" without exposing it to the user. When Method = Other, then the Acquisition Type field is exposed to the user with a list of choices (e.g., road kill, found dead) that does not include "Hunter harvested". I've tried every combination of the default, relevant and calculation fields I can think of, but I'm stumped. Please see attached. Any help would be greatly appreciated!

Reply
0 Kudos
2 Replies
Highlighted
Frequent Contributor II
Reply
0 Kudos
Highlighted
Occasional Contributor

Thanks for the suggestion Doug. I ended up creating a temp attribute and passing that to the attribute of interest. See below. If there is a more efficient approach I would still appreciate hearing about it.

type

name

label

required

relevant

calculation

select_one acquisitions

acquis_temp

Other Type

$='Other' $='Other'

calculate

sample_acquisition

if(selected($, ''), 'Hunter harvested', $)

Reply
0 Kudos