cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zRc
Frequent Visitor

How to Display Formmode.view if field selected has answer already, if null Formmode.edit

Hi,

 

I have this SP and customize the form using PowerApps. The condition I need is that if the item selected and the specific field column has answered, the form mode is view and can't be edited, and if the specific column is null then the formmode will be in View Mode and can be edit the Item.

 

 

Thank you in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
rampprakash
Super User
Super User

Hello @zRc,

 

Consider Field Name is : txtboxField

Then in all other fields then go to VISIBLE property then write the below code

 

If(IsBlank(txtboxField),DisplayMode.Edit,DisplayMode.Disabled)

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

View solution in original post

3 REPLIES 3
rampprakash
Super User
Super User

Hello @zRc,

 

Consider Field Name is : txtboxField

Then in all other fields then go to VISIBLE property then write the below code

 

If(IsBlank(txtboxField),DisplayMode.Edit,DisplayMode.Disabled)

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

zRc
Frequent Visitor

Hi, @rampprakash .

Checking on this.



Thank you.

zRc
Frequent Visitor

Hi @rampprakash 

 

Visible property only accept true or false value. Using the syntax provided, I use this instead in the DisplayMode, change the disabled to View and it works.

 

Much better if the form itself will be in DisplayMode.View but I'm okay with it.

 

Kudos to @rampprakash 

 

Thank you.

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (3,736)