Editing from Inbox - can I make some fields read-only once they've been previously completed?

13206
15
Jump to solution
04-11-2021 06:38 AM
SaraMiller
Regular Contributor

I have a survey with repeats which will use the Inbox to edit and add records to the repeat.  However, I want to prevent the "metadata" that sits outside the repeat from being edited by subsequent users after the initial submission.  I was trying to use an "if" statement in the readonly column, but getting nowhere.  XLS form attached.

 

Fields to become read-only when editing from Inbox:

Region

Site

Other Site Name

Other Site Grid Reference

Platform Name or ID

Platform Map Location

15 Replies
ZacharySutherby
Esri Regular Contributor

Hello @santamariaa

Are you using the Survey123 field app or web app? You mentioned opening the survey in a Dashboard so it sounds like you may be using the web app. 

At this time the web app does not support expressions in the read only column. Please see the Form expressions documentation for reference. We have ENH-000140250 in our backlog to support this in the future. Please feel free to reach out to Esri Technical Support to be attached to the enhancement and track progress on the feature. 

Thank you,
Zach
0 Kudos
RoshanPalikhe1
Emerging Contributor
We use pulldata("@property","mode") = 'edit' in the readonly column for several fields (DateofEvent, TimeofEvent, SupervisorList, and CheckOne), and these fields should be read-only when the survey is opened in Edit Mode. However, when the survey is launched from Experience Builder, those fields remain editable even though the record is clearly being opened in Edit Mode. Has anyone else noticed pulldata("@property","mode") not behaving as expected when Survey123 is opened through Experience Builder? 
DougBrowning
MVP Esteemed Contributor

Are you using the 123 widget in ExB?  Or the Edit widget which is more for the Field Maps or AGOL forms?

0 Kudos
RoshanPalikhe1
Emerging Contributor

I'm using the Survey123 widget in ExB.

0 Kudos
DougBrowning
MVP Esteemed Contributor

Did you try the trick from the solution to use a field?

DougBrowning_0-1785244911041.png

 

0 Kudos
RoshanPalikhe1
Emerging Contributor

I tried with this solution as well but didn't worked.

0 Kudos