Select to view content in your preferred language

Support URL custom URL field parameter for Survey123 Inbox/Repeats

714
3
08-17-2023 05:15 PM
Status: Open
Labels (3)
ChristopherCounsell
MVP Regular Contributor

Looking to pre-populate values in an existing record via Survey123 custom URL.

The field parameters don't appear to populate when opening in the Inbox. This makes it difficult to pre-fill repeat sections or update parent table fields (i.e. use null note questions to then fill repeat values).

We want to be able to capture the current state of the visit in the repeat, but then clear the parent tables via a calculation. We also want to pre-fill different information depending on the source of survey launch.

Currently we can't prefill the data and it leaves it prone to calculation loops.

3 Comments
ChristopherCounsell

ENH-000130171

ahargreaves_FW

Is this the reason why when I use the below to retrieve the relevant record from the inbox:

arcgis-survey123://?itemID=xyzx&action=edit&folder=inbox&update=true&filter={WORKORDER_NUMBER}....

It only seems to open the record 'as-is' and not update it with additionally included parameters:

arcgis-survey123://?itemID=xyz&action=edit&folder=inbox&update=true&filter={WORKORDER_NUMBER}&field:STR_NUM_HOLDER={ADDRESS_NUM}

I've even tried combining this with the '?recalculate' function documented here by @IsmaelChivite that is supposed to "force certain fields to be recalculated, even if the record is opened in edit mode. " But it fails to update the record:

arcgis-survey123://?itemID=xyzx&action=edit&folder=inbox&update=true&filter={WORKORDER_NUMBER}&field:STR_NUM_HOLDER={ADDRESS_NUM}&recalculate=field:STR_NUM_HOLDER

ChristopherCounsell
Yes, field not supported parameter for Inbox