Select to view content in your preferred language

Calculate right after hitting the submit button

400
2
04-18-2024 04:41 PM
lannguyentl
Occasional Contributor

Hi everyone,

Is there any way to calculate only while submitting (or let's say after hitting the submit button)? In my workflow, after user adds his signature and then submits the form, I would like to recalculate a field call survey_mode from "editable" to "readonly" so that this record will be readonly when user call it back through Inbox.

Currently, calculation trigger right after the signature is added. It is not convenient as user may want to replace his signature.

We can use a tasked python script to assist this update. However, it would be better with S123 only.

Thanks,

Lan

Tags (2)
0 Kudos
2 Replies
DavidSolari
Frequent Contributor

I haven't found a way to do this in Survey123 alone, but if your survey data is backed by an Enterprise Geodatabase you can use Attribute Rules to flip the read-only switch on submission

ChristopherCounsell
MVP Regular Contributor

If you want a signature on submission but disable on Inbox, you can use the Survey Mode to make it as read only.

Try adding this to the read only column

if(pulldata("@property", 'mode') = 'edit','yes','')

Otherwise you might need to setup a hidden field like here:

https://community.esri.com/t5/arcgis-survey123-questions/editing-from-inbox-can-i-make-some-fields-r...