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 / Make a "Comment" field...
Power Apps
Unanswered

Make a "Comment" field Visible if ANY selection is made from a Drop Down in Sharepoint list.

(0) ShareShare
ReportReport
Posted on by 4

I am looking for a little guidance with a Sharepoint list.  I created a form with a dropdown list named Reason Code with 13 options.  I am trying to make a text box named Comment visible when any of the Selections are made.  I got it to work with one Selection by using 

If(DataCardValue11.Selected.Value = "Training",true,false), but I need to make it visible with any Selection. 

 

I've tried

If(DataCardValue11.Selected.Value = ("Training", "Other"),true,false) with parenthesis and brackets. Neither worked.

 

Any help would be appreciated.  I have attached 2 screen shots.  One with the "Comment" box closed (default).  One with the "Comment" box open due to "Training" being selected.

Comment Closed.png
Comment Open.png
Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    You might try ISBLANK

     

     

    If(!ISBLANK(DataCardValue11.Selected.Value),true,false)

     

     

     

    *Edit*  I just tested this and for my dropdown it worked with the following:

     

    If(!IsBlank(Dropdown2.Selected.Result),true,false)

     

     

  • Newatthisstuff Profile Picture
    4 on at

    Thanks for responding.  How do I find the Dropdown name? (ex. Dropdown2) What property do I put that on?  I put the original code on the Comment data card under Visible so it would trigger off of the Reason Code data card selection Training.

  • Newatthisstuff Profile Picture
    4 on at

    I got it to work using

    If(IsBlank(DataCardValue11.Selected.Value),false,true).  Thank you for pointing me in the right direction.

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Glad you got it to work!  You can help others to find the answer in the future by marking it as a solution.  ^__^

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Newatthisstuff, glad you were able to get it to work.

     

    As a quick tip: in the majority of cases you can remove the If() statement when it returns true or false.

    Especially once your app becomes more complex, these small improvements do add up.

     

    //returns true if it is not blank, else false
    !IsBlank(DataCardValue11.Selected.Value)

     This will have the same effect as If(IsBlank(DataCardValue11.Selected.Value),false,true) but requires less code and increases readability.

     

    I hope this helps!

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