Change content of survey based on who's filling it in.

92
2
07-28-2020 08:18 PM
JamesBailey
Occasional Contributor

Hi

Is it possible to change which questions appear and what answers are visible (e.g. limited options in drop down) depending on who is filling in the survey?

Cheers

0 Kudos
2 Replies
KevinLambeth1
New Contributor III

James,

   Depending on how many users you have and/or if they use unique devices, we have implemented something that may be similar to what you are asking based on the DeviceID and/or Username. Basically the start of the survey would contain a "username" and/or "deviceid" line that can then be used in relevant or choice_filters to modify the survey and/or selectable answers as needed.

However, it can easily become unwieldy depending on the complexity of your survey design.  An alternate option we have also used is to reference the feature service to create different surveys that all feed into the same feature service and then use access management to serve the correct version to the correct users.  This is usually our first choice when certain users need restricted access to certain fields and others (say managers) need to review submissions and potentially modify other fields.

Hope this helps,

Kevin

JamesBailey
Occasional Contributor

Thanks for your response Kevin, I will definitely keep those ideas in mind.
What I ended doing/figuring out was that I can pre-select answers based on username i.e. if(${username}='john.doe', john's responsibility, jane's responsibility) within the calculation column.

0 Kudos