Select to view content in your preferred language

Can't collect geoshape with vertices in webform

636
2
Jump to solution
08-25-2022 08:05 AM
GrantZ
by
New Contributor III

Hi all,

I've built a survey that requires users to collect the outline of the field they are working in using a geoshape question. I built the survey in Connect, and I set the bind::esri:style on the geoshape to "method=vertex", which lets the user collect the field by placing vertices on the map. However, the users will be using the survey through the webform, and the webform does not have this functionality, the geoshape question there can only be collected by sketching. Perhaps I've missed something in the documentation, but how do I set the geoshape question in the webform to collect using vertices?

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

Hi @GrantZ  The Survey123 web app supports mode=vertex. I am just guessing that you put the mode property in the wrong field. You need to put it in body::esri:style (not in bind::esri:style).

Here is an example of the web app with vertex mode and snapping...

Snapping.gif

 

To do the above I added method=vertex snapMode=self,feature into the body::esri:style column of my geoshape question. Hope it helps!

By the way, for snapping to work you will need to publish your survey with the latest version of Connect (or from the web designer).

 

 

View solution in original post

0 Kudos
2 Replies
IsmaelChivite
Esri Notable Contributor

Hi @GrantZ  The Survey123 web app supports mode=vertex. I am just guessing that you put the mode property in the wrong field. You need to put it in body::esri:style (not in bind::esri:style).

Here is an example of the web app with vertex mode and snapping...

Snapping.gif

 

To do the above I added method=vertex snapMode=self,feature into the body::esri:style column of my geoshape question. Hope it helps!

By the way, for snapping to work you will need to publish your survey with the latest version of Connect (or from the web designer).

 

 

0 Kudos
GrantZ
by
New Contributor III

Hi Ismael,

Thanks for your reply! I can't say for certain why, but it is functioning in the web app now. I was also loading a web map in the same field; when I had the method first, it didn't work, but when I put the method after the map (e.g., "map=. . ., method=vertex") in the body::esri:style column, the vertex mode appeared in the web app.

0 Kudos