cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
malkhawaja
Advocate II
Advocate II

show or hide a custom command button using PowerFx when a form is "New"

Hi,

@ScottDurow 

I am trying the new custom command designer with Power Fx in a Model-driven app, and I want to hide the button if the form is in "new" state, so I am trying to use IsBlank(Self.Selected.item) but but it appears that the self property returns an error on a new form then the whole result comes as true, here is a command checker screenshot

 

malkhawaja_0-1631825229771.png

 

so what should I use as a formula to check for the "New form", so I can be able to hide the button?

 

regards,

Mohammad

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @malkhawaja ,

 

This function may not meet your needs at present because it is in the preview stage.

I suggest you use ribbon workbench.

vxiaochenmsft_0-1632194165608.png

vxiaochenmsft_1-1632194176816.png

vxiaochenmsft_2-1632194214085.png

vxiaochenmsft_3-1632194229576.png

vxiaochenmsft_4-1632194238413.png

 

 

Best Regards,

Wearsky

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @malkhawaja ,

 

This function may not meet your needs at present because it is in the preview stage.

I suggest you use ribbon workbench.

vxiaochenmsft_0-1632194165608.png

vxiaochenmsft_1-1632194176816.png

vxiaochenmsft_2-1632194214085.png

vxiaochenmsft_3-1632194229576.png

vxiaochenmsft_4-1632194238413.png

 

 

Best Regards,

Wearsky

 

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,402)