Select to view content in your preferred language

Parse data from dashboard element to Survey123 form

140
4
Jump to solution
Monday
Labels (1)
SCB
by
Occasional Contributor

Hello!

I'm wondering if it is at all possible to select a feature in a dashboard list and dynamically parse some information from the feature into a Survey123 form that is within an embedded content element within the same dashboard.

 

Cheers

SCB

0 Kudos
1 Solution

Accepted Solutions
VenkataKondepati
Regular Contributor

Yes, and you don't even need custom code to do it. You just have to use URL Parameters to pass data from your List to the Embedded Content element. In your Dashboard, set the Embedded Content URL to the Survey123 web form link and append your fields using the field:SurveyColumn={LayerField} syntax. When you select a feature in your list, the Dashboard "injects" that feature's attributes into the URL, effectively auto-filling the survey on the fly. Just make sure your List has a Filter Action targeting the Embedded Content element so it knows to reload the form whenever you switch features.

Regards,
Venkat

View solution in original post

4 Replies
VenkataKondepati
Regular Contributor

Yes, and you don't even need custom code to do it. You just have to use URL Parameters to pass data from your List to the Embedded Content element. In your Dashboard, set the Embedded Content URL to the Survey123 web form link and append your fields using the field:SurveyColumn={LayerField} syntax. When you select a feature in your list, the Dashboard "injects" that feature's attributes into the URL, effectively auto-filling the survey on the fly. Just make sure your List has a Filter Action targeting the Embedded Content element so it knows to reload the form whenever you switch features.

Regards,
Venkat
SCB
by
Occasional Contributor

Thanks @VenkataKondepati , @Neal_t_k .

I had been exploring this route after reading that blog but was not getting any results.  You pushed me to keep trying this avenue and I realised I needed field:SurveyColumn={field/LayerField}.

Many thanks once again, this has made me very happy 😀

 

Cheers

SCB

SCB
by
Occasional Contributor

And just an aside.  I've decided to implement this from selecting a feature in a map rather than from a list.  For anybody wanting to do it that way it is exactly the same set-up but obviously you place the action on a layer in a map rather than in the list element.

Cheers

SCB

0 Kudos