I am looking to pass parameters from Workforce, and the project's web map, I've hit an issue when trying to set a field which is contained within a group.
If I have the following schema in my form
type | name | label |
text | sitename | Site Name |
text | name | Full Name |
If I launch the survey and pass in the default values for these fields using the following url
https://survey123.arcgis.com/share/{GUID HERE}?field:sitename=SITE123&field:name=MYNAME
The Survey get populated with both the values I passed in.
If I then modify the survey definition and add a grouping
type | name | label |
text | sitename | Site Name |
begin group | person | |
text | name | Full Name |
end group |
Using the the same url only the sitename field is now populated. I wasn't expecting name field to populate, however I should be able to access it by modifying it's path e.g. person/name or person.name etc. I have tried all sorts of separators e.g. _, __, . and %2F and am not really getting anywhere.
Can anyone shed any light on how to access nested fields, or point me to the documentation?
Thanks
Si
References:
Hi Simon,
I am able to get a sample based on your description working. See:
Can you try to set up the URL with the test survey? Also, can you check to see that spaces (and other special characters) are being properly percent-encoded? A space may stop the reading of the URL.