Is it possible to open a survey to a specific page via URL parameters

294
12
Jump to solution
2 weeks ago
Trippetoe
Occasional Contributor III

Hello.

Is it possible to open a web-based survey to a specific page (like page 2 of 4, or some such) - perhaps from a URL parameter maybe?  I saw a list of parameters here, but none of them looked promising. Are there other options for opening the survey to a specific page?

 

Thank you.

1 Solution

Accepted Solutions
abureaux
MVP Regular Contributor

Short answer is "No".

Surveys start on Page 1 in both the Web and Field App by default.

View solution in original post

0 Kudos
12 Replies
JanelleGuzman
New Contributor II

Can you share the survey? Perhaps I can assist, I just need to see how the link and survey are setup.

0 Kudos
Trippetoe
Occasional Contributor III

Hi @JanelleGuzman There is no survey to share yet. We are still at the 'on the drawing board' stage at this time.

0 Kudos
abureaux
MVP Regular Contributor

Short answer is "No".

Surveys start on Page 1 in both the Web and Field App by default.

0 Kudos
Trippetoe
Occasional Contributor III

Hello @abureaux . Thanks for your reply.

By any chance is there a 'Long Answer' that can get to 'Yes'. Or is 'No' both the short and long answer?

0 Kudos
abureaux
MVP Regular Contributor

The long answer is something like "you could get the API and make a custom app". So reasonably speaking, "no".

Maybe we can think about this another way. If you want to start on Page 3 (for example), do you really need to have pages 1 and 2 even available? If not, I'd consider hiding them with relevant/body::esri:visible. That way your user "starts on page 1", which is actually page 3 since the real pages 1 and 2 are hidden.

0 Kudos
Trippetoe
Occasional Contributor III

I think of myself as a somewhat reasonable person, so i'm good with 'no' as the official answer.

Here's a high level description of what we're wanting to do. I'm working with some park planners as they develop multiple options for improving an existing park. The planners want to use Survey123 to get citizen's feedback on various aspects of the multiple plans. And there are lots of 'aspects' to the options. We are imagining a scrolling story map where each 'aspect' of a the design option gets a full text description, graphics, images etc, etc, and then place a survey at the end of that aspect that asks multiple questions to get citizens feedback, rankings, etc. specific to that aspect. And then citizens can scroll down to the next aspect, get descirptions, images, etc and a survey at the end of that section .... and so on. Each 'aspect' would have its own Page in the survey. that's why i was wondering if we could specify what page to open the survey on.   We want to keep all the answers in a single survey to support "cross-tab" analyses if possible

Maybe this is starting to drag on too long. Anyway, i'd love hear ideas about how we could pull off something like this.

Thank you for sharing your time and knowledge.

0 Kudos
abureaux
MVP Regular Contributor

Ahh. Cool concept.

Given that, there are a few different routes you could take. The easiest and most streamlined (IMO) would be to make your "Parent Survey" and then "Child Surveys" based on it.

  1. Create your parent survey (I.e., a survey with every question you want to ask)
  2. Publish parent survey
  3. In Connect, do "New Survey" > "Feature services" (found under "Organization", on the left) > locate the parent survey you just published and select it > click "Create survey"
  4. Format this survey to be for a specific aspect.
  5. Publish your child survey.
  6. Repeat Steps 3 to 5 for all remaining aspects.
  7. In your storey map, use the child surveys for each aspect. Now, when people add responses, they will all feed into the parent survey.

Now, this will leave you with blank columns. E.g., Someone fills out child survey for aspect 1, then the columns for aspects 2 on-wards will be empty (since, you know, they didn't get data). You should still be able to perform the necessary data operations though. But perhaps this is what you were trying to avoid with the "set start page" question?

Trippetoe
Occasional Contributor III

That is a fabulous idea. Thank you for sharing it!

I'm also intrigued by the suggestion from @JanelleGuzman for a common 'connector' across multiple surveys. I could see something like an auto-created guid when a user opens the storymap, or something along those lines, which gets submitted when each 'child' survey is submitted - a sort of session id if you will. But, i've got no good ideas yet on how that might be done. Do you?

0 Kudos
RobertAnderson3
MVP Regular Contributor

The pulldata(@property) has some functions that could be used to link the surveys to the same device/user, you could look at using that to help link them together in a hidden calculation field, like pulldata(@property,'deviceId') for example. More details at the link below:

Prepopulate answers—ArcGIS Survey123 | Documentation