cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to make fiels unchangeable in the View and edit form for the people, who created item

How to make fiels unchangeable in the View and edit form for the people, who created item?

 

BR

3 REPLIES 3
Highlighted
Community Champion
Community Champion

Re: How to make fiels unchangeable in the View and edit form for the people, who created item

On the displaymode of those fields put:
Form1.Mode<>FormMode.New&&User().Email="cbnm@mmm.com",View

You can also make it dynamic using textbox:
Form1.Mode<>FormMode.New&&User().Email=Textbox1.Text,View

Where Textbox1.Text holds the user email

 

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper III
Helper III

Re: How to make fiels unchangeable in the View and edit form for the people, who created item

 I have tried, it works, when I tape a certain email in the format"XXX@mail.com", but it does not work  , when I try to extract email from the field " Created by". This field display name of the user by default, please, could you help me to extract his mail

 

BR

Highlighted
Community Support
Community Support

Re: How to make fiels unchangeable in the View and edit form for the people, who created item

Hi @Galina73 ,

 

Do you mean you want to configure the Field mode based on the Creatby field?

What is the item property of EditFrom?

Please modify the code as below:

If(FormName.Mode<>FormMode.New && ThisItem.'Created By'.Email=User().Email,DisplayMode.View, Parent.DisplayMode)

Hope this helps.

Sik

 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,739)