cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (23,062)