web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Activation button on c...
Power Apps
Answered

Activation button on condition

(0) ShareShare
ReportReport
Posted on by 12

Hello Power Apps community,

 

I am quite new to Power Apps and struggling with a function that does not work for me.

 

I have build a canvas app with two dropdowns, which get distinct values from a Sharepoint list. Dropdown two is dependent on dropdown 1, so the number of choices when the user selects an option in dropdown 1 is reduced for dropdown 2 to only the relevant values. The behavior that I want to achieve now is, that depending on the selection of the user for the two dropdowns a third colum in the same Sharepoint list is checked (the combination of the values from dropdown 1 and 2 identifies a unique row from the Sharepoint) and if it contains a special text, then the "Continue" button should be deactivated until the user fills something in an additional text field. 

 

Right now I am using the following formula on the DisplayMode property of my button: 

 

If(!IsBlank(LookUp('Beschreibungen', Name=Dropdown1.SelectedText.Value && Beschreibung=Dropdown2.SelectedText.Value && 'Weitere Beschreibung notwendig?'="weitere Beschreibung zwingend notwendig!")) && !IsBlank(TextInputTätigkeit), DisplayMode.Edit, DisplayMode.Disabled)

 

The formula is working as intended regarding the first part of the condition. If a special combination in which additional description is needed gets selected the button is activated once the user fills in some text. But the button is deactivated for all other combinations in which I do not have the specified condition so no additional description is needed. Even if I fill in the text field, the button does not get activated as it should. 

Could someone explain to me where I got it wrong and point me in the right direction? Thank you very much in advance!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @GP_59 .

    You need the content of the Text box, not the control itself

    If(
     !IsBlank(
     LookUp(
     'Beschreibungen', 
     Name = Dropdown1.Selected.Value && 
     Beschreibung = Dropdown2.Selected.Value && 
     'Weitere Beschreibung notwendig?' = "weitere Beschreibung zwingend notwendig!"
     ).Beschreibung
     ) && !IsBlank(TextInputTätigkeit.Text), 
     DisplayMode.Edit, 
     DisplayMode.Disabled
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • GP_59 Profile Picture
    12 on at

    Hello @WarrenBelz thank you very much for your reply - seemed very logical to me when I read it but does not change the behavior of the formula at all. The button still stays deactivated even if it shouldn't. I guess the problem lies with my initial line of thought as I am only activating it in the special context if additional text is added and ignore everything else.

  • Verified answer
    GP_59 Profile Picture
    12 on at

    Found the problem: I had the wrong order in the If condition which confused me a lot. 
    Corrected it and now it is working:

    If(
     !IsBlank(
     LookUp('Beschreibungen', 
     Name=Dropdown1.SelectedText.Value && 
     Beschreibung=Dropdown2.SelectedText.Value && 
     'Weitere Beschreibung notwendig?'="weitere Beschreibung zwingend notwendig!")) 
     && 
     IsBlank(TextInputTätigkeit.Text), 
    DisplayMode.Disabled, DisplayMode.Edit)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @GP_59 

    I cannot see your data, however if all of those conditions are met, the control should be in Edit Mode

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    @GP_59 ,

    That is not something identifiable from your post (only you can see the logic here) - your real issue in structure was your reference to the control instead of the content.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard