cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CollabTechie
Level 8

Help me combine these two formulas

Hi Community,

My scenarios is that I need to disable a button if 1) No text has been entered into my text input & 2) I need to also disable the button if a , or | has been entered into the text input.

How do I make these two work together?

 

If(IsBlank(TextInput.Text) ,DisplayMode.Disabled, DisplayMode.Edit) 
If(IsMatch(TextInput.Text,".*[,\|].*"), DisplayMode.Disabled, DisplayMode.Edit)

 

 
Thanks,
CT

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Help me combine these two formulas

Hey @CollabTechie 

 

You can combine these expressing using the || operator as:

If(IsBlank(TextInput.Text) || IsMatch(TextInput.Text,".*[,\|].*") ,DisplayMode.Disabled, DisplayMode.Edit)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Help me combine these two formulas

Hey @CollabTechie 

 

You can combine these expressing using the || operator as:

If(IsBlank(TextInput.Text) || IsMatch(TextInput.Text,".*[,\|].*") ,DisplayMode.Disabled, DisplayMode.Edit)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

CollabTechie
Level 8

Re: Help me combine these two formulas

Perfect, thanks!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,867)