Calculate right after hitting the submit button

194
2
a month ago
lannguyentl
New Contributor III

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
Occasional Contributor III

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...