3/12/2023 0 Comments View webmap in collector![]() Passing field parameters for questions within a repeat or attachments is not supported at the moment.If you are working with select_one type of questions this is very relevant, since the value you must pass is that of the XLSForm Name of the choice, rather than its Label. The value to insert after the equal ( =) sign is the actual value that will be stored in the feature service.The value to insert immediately after field: is the value of the corresponding NAME question in your XLSForm.Here are some tips when passing field parameters: field:AssetID=FF34001 will populate the AssetID question in your survey with the value FF34001.Field parameters always are prefixed with the word field: After that, you enter the name of the actual question for which you want to set the answer, then you add an equal sign and the answer. If you want a survey to open and have some or all questions already answered, you will add as many field parameters as needed. In the example above we use the field:AssetID and field:Status parameters to prepopulate questions in the survey. If no user is logged-in, a dialog will prompt the user for credentials. ![]() ![]() If the survey is private, it will be downloaded using the currently logged-in user. If the survey is shared publicly, it will open right away. The app will automatically attempt to download the survey as specified in the itemID parameter. Now get the ID of your Form from the location bar of your browser.įor example, if the URL of your survey looks like this: Click on the survey for which you want the itemIDģ. To obtain the proper itemID for a survey follow these instructions:ġ. If the survey is not already in the device, the app will attempt to download it automatically. The itemID parameter ( i temID=89bc8c7844e548e09baa3aad4695e78b) refers to the survey you want to open. The rules for how to properly pass parameters are common to how you build query strings for the web. Each parameter is actually made of two parts: the parameter name and the parameter value, which are separated by the equal ( =) sign. Parameters are separated from each other through ampersands ( &). The list of parameters starts with a question mark ( ?). For this to work, the Survey123 app must be installed in the device in which the call is being made.Įverything after arcgis-survey123:// are optional parameters that you can pass if you want the app to do additional things. The first bit is pretty obvious: arcgis-survey123:// invokes the Survey123 mobile app. In this post I will first describe the syntax of the Survey123 custom URL scheme, then how to execute a call with it and later how to integrate URL scheme calls into feature popups in ArcGIS Web Maps, so other ArcGIS Apps can leverage it.Ībout the Survey123 Custom URL Scheme syntaxĪ call to Survey123 through its URL Scheme looks something like this:Īrcgis-survey123://?itemID=89bc8c7844e548e09baa3aad4695e78b&field:AssetID=FF34001&field:Status=Good¢er=43.567,-117.380 Explorer, Collector or a plain Web Map can serve the first purpose. Take for example a case where you want field users to use a map to identify a particular asset, and then use a smart form in Survey123 to capture information about that particular asset. ![]() Specifically, the URL scheme in Survey123 allows you to:Ī common practical scenario for using the Survey123 custom URL scheme is integrating Survey123 with other ArcGIS apps like Explorer, QuickCapture, Collector or even your own web mapping apps. Through a custom URL scheme you can remotely launch apps and invoke actions in them. The purpose of a URL scheme is to provide a well-known protocol for apps to communicate with each other. Updated Aug(Added reference to Arcade UrlEncode operation) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |