Select to view content in your preferred language

Use pulldata to determine Web or Survey123 App?

176
1
02-20-2024 12:27 PM
TL2
by
Occasional Contributor III

I have some functionality that only works in Survey123. I would like to display a label if the web form is being used and hide the label if the app is being used.  Is this possible with pulldata()?

0 Kudos
1 Reply
abureaux
MVP Regular Contributor

There isn't a "switch" you can look at.

But, you can use the deviceid parameter (see below) as a stand-in.

abureaux_0-1708465904861.png

deviceid won't appear for web forms, so if(${device_id}='deviceid not found',1,0) should work for that purpose.