Select to view content in your preferred language

Restriction that a survey can only be opened via web form

379
2
Jump to solution
07-31-2023 08:22 AM
Sven_Harpering
Esri Contributor

Hello everyone,

we developed a form via Survey123 Connect. So far nothing exciting. However, the customer now wants the survey only to be opened in the web form and not in the native app. We have already made the setting that the form should actually only be opened via the web.

Sven_Harpering_0-1690816810441.png

Nevertheless, users can also find and use the form in the native app. Is there a way to prevent this? We are using pulldata(@layer)-functionality which is not working in the native app and therefore we want to disable the usage in the native app.

Thanks and best regards
Sven

Passionate about GIS and on the journey as an instructor for analytical insights.
0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

Hi @Sven_Harpering   At this time, it is not possible to mark a survey as 'web only'. That is an area where we will need to improve!  In the meantime, you can build logic in your form to figure out what type of client is opening your survey.  For exampe, you can use pulldata("@property", 'deviceModel'). This will return the device used by the end client, which should be empty when the user is using the web app. With that, you can display a note, and/or hide questions in your form as appropriate.

View solution in original post

2 Replies
IsmaelChivite
Esri Notable Contributor

Hi @Sven_Harpering   At this time, it is not possible to mark a survey as 'web only'. That is an area where we will need to improve!  In the meantime, you can build logic in your form to figure out what type of client is opening your survey.  For exampe, you can use pulldata("@property", 'deviceModel'). This will return the device used by the end client, which should be empty when the user is using the web app. With that, you can display a note, and/or hide questions in your form as appropriate.

Sven_Harpering
Esri Contributor

Hi @IsmaelChivite,

thank you for the answer and the hint :). We will give it a try.

Best

Sven

Passionate about GIS and on the journey as an instructor for analytical insights.