cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vaibhav_k
Resolver III
Resolver III

Disable certain fields in SharePoint list edit form

Hi, how can the Period and Quartely values fields be disabled on sharepoint list edit form? 

I should still be able to add new fields in repeating table but for existing entries, it must show disabled.

 

I tried  in

 

DisplayMode= If(
Form1.Mode = FormMode.New,
DisplayMode.Edit,
DisplayMode.Disabled
)

 

Vaibhav_k_2-1638945538731.png

 

But it disables the new rows as well. any suggestions?

 

1 ACCEPTED SOLUTION

Accepted Solutions

If(
Form1.Mode =FormMode.Edit && ThisItem.ID>0,
DisplayMode.Disabled,
DisplayMode.Edit
)

View solution in original post

2 REPLIES 2
Vaibhav_k
Resolver III
Resolver III

The fields have some default values so they are not completely blank.

 

If(
Form1.Mode =FormMode.Edit && ThisItem.ID>0,
DisplayMode.Disabled,
DisplayMode.Edit
)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,769)