Announcements
If( EditForm1.Mode = FormMode.New, AssetLn.DisplayMode.Disabled, AssetLn.DisplayMode.Enabled )
I want to disable some specific form field if my form mode is new
Try this, just replace the TextInput with any element you want disabled.
If( EditForm1.Mode = FormMode.New, TextInput1.DisplayMode.Disabled, TextInput1.DisplayMode.Enabled, )
Actually, you could just use the following code in the DisplayMode of any element to disable.
If(EditForm1.Mode= FormMode.New, DisplayMode.Edit, DisplayMode.Disabled)
This would have worked, but i am using modern control
Placing the disable before the edit works.. Thanks
If( EditForm1.Mode = FormMode.New, DisplayMode.Disabled, DisplayMode.Edit )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 345 Super User 2026 Season 2
Mohsin Ali 225
M Bilal Khan 192