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

Bugg? DisplayMode property of a button is not working

Hi Experts,

I have created an edit form in that i have added the fields(DataCards) and a button inside of the form for update.

In the DisplayMode property of the button, i have written as If(DataCardValue1.Text = "", DisplayMode.View, DisplayMode.Edit).

I have used the same formula for the other 2 edit forms in my powerapp. while editing of the app it is working after republishing the app it is working for one form and it is not working for other two forms(Both while playing the app and using the app).

Note : I have created the 3 edit forms in one app only.

Can Anyone help me to solve this?

Thanks in advance,

With regards,

User237.

1 ACCEPTED SOLUTION

Accepted Solutions
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @User237 ,

Can you Please use like below, Hope that will help you to resolve your issue,

IsBlank(DataCardValue1.Text) || IsEmpty(DataCardValue1.Text)

Thanks,
Vijay

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

View solution in original post

5 REPLIES 5
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @User237 ,

Can you Please use like below, Hope that will help you to resolve your issue,

IsBlank(DataCardValue1.Text) || IsEmpty(DataCardValue1.Text)

Thanks,
Vijay

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Hi @VijayTailor,

Thanks for your reply,

I have used the formula which you have suggested. I have checked by republishing the app, now is it working.

For my better understanding. Can you please explain the difference between my formula and your formula?

With regards,

User237.

Hi @User237 ,

you are simply Passing the Empty Double Quote. and that is not allwed to Validation Like you did.
so Power app having inbuild Function Like IsBlank and IsEmpty.

Both Functions helps you to validate the string is blank or EMpty.

More details about the Isblank or IsEmpty Function follow the below URL.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-isblank-isempty



Thanks,
Vijay

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay





Hi @VijayTailor,

Thanks for your reply,

It hepled me a lot, It is working.

Thanks for your explanation.

with regards,

user237. 

Hi @VijayTailor,

I was having one more issue. Below is the link related to it, Please have a look it once.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Update-Button-picking-the-wrong-record/td-p/... 

with regards,

user237.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (2,012)