cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MsMicrosoft
New Member

Read Only View in Model Driven Apps

I need to create a read only view in  my model driven app; After a user submits a form I want them to be able to see all their forms but without the abily to make changes. 

This sounds like something easy but I can't find the way to do it; I'm also new to model driven apps. All the views I create are editable and i dont know how to change that.  Any ideas?

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Softbear
Helper I
Helper I

Hello mate,

 

1. Go to the "Form" editor in common data service. 

2. Select your form

3. Select the field in the form you want to set "Read-Only"

4. Go to "Change Properties" in the top menu

5. Check the "Read-Only" field

 

See attached

 

Was that what you wanted?

View solution in original post

4 REPLIES 4
v-monli-msft
Community Support
Community Support

Hi @MsMicrosoft ,

 

Did you create the auto-generated app using SharePoint list as connector? If so, Did you mean that you want to disable editing for this app once a user click on the submit button for the first time? If so, you could set below formulas to achieve this:

Screen1.OnStart=Set(V, true)
SubmitButton1.OnSelect=SubmitForm(EditForm1);Set(V,false)
EditButton1.Visible=V
AddNewItemButton1.Visible=V
DeleteButton1.Visible=V

SubmitButton is :1.jpg

EditButton1 AddNewItemButton1 and DeleteButton1 are:

Capture.JPG·.JPG

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Softbear
Helper I
Helper I

Hello mate,

 

1. Go to the "Form" editor in common data service. 

2. Select your form

3. Select the field in the form you want to set "Read-Only"

4. Go to "Change Properties" in the top menu

5. Check the "Read-Only" field

 

See attached

 

Was that what you wanted?

Thanks, yes that is what i need but i have around 60 field and I wouldn't like to do it manually one by one; i was wondering if there is a way to set the read only property at the form level so that it applies to all fields but i guess not.

thank you anyways!

hi Mona, your solution doesn't apply to model driven apps; only to canvas apps so it doesn't solve the problem for me but thanks!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (1,362)