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 / Adding Drop-Down List ...
Power Apps
Unanswered

Adding Drop-Down List Logic to a Power App

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi folks!

 

I created logic for a form I'm working on in PowerApps to not allow users to submit an entry if their Activity Description is less than 250 characters. The way I did it is by writing a function in the Display Mode property to be Disabled if the description doesn't meet said threshold. However I want to tie in another function to that button that allows users to submit their entry with an activity description of less than 250 characters if they click the "Time-Off" option from a drop-down menu.

 

My original Display Mode formula for the button follows as:

If(Len(ActivityDescription.Text) >= 250, Edit, Disabled)

 

I was thinking something like this could work to add the drop-down menu logic:

If(Len(ActivityDescription.Text) >= 250 OR HoursType.Text = "Time Off", Edit, Disabled)

 

However every variation of this new formula doesn't seem to work, is there another way of achieving this result? Let me know if anyone has a solution!

Categories:
I have the same question (0)
  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @Anonymous 

     

    If(

        Len(ActivityDescription.Text) >= 250  ||

        (HoursType.Selected.Value = "Time Off" && Len(ActivityDescription.Text) < 250 ),

            Edit,

            Disabled
    )

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard