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 / Show Hide Asterisk Pow...
Power Apps
Answered

Show Hide Asterisk Power Apps Dropdown

(1) ShareShare
ReportReport
Posted on by 14

I have a Canvas App Form where I hide the continue button until all required fields are filled in i.e. are not blank.

 

Once the field is filled in the red asterisk is hidden. This works correctly for the text controls i.e. if I start typing in text the asterisk disappears and if I delete the text within the text control the asterisk reappears.

 

PROBLEM: However with the dropdown controls - by default they are blank - once an entry is selected the asterisk disappears BUT if I clear the entry (back to blank) the asterisk does not reappear.

 

This is the Visible function I am using on all the asterisks: If(IsBlank('DataCardValue-xxxxxx'),true,false)

 

Any help is appreciated.

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    I think you mean a combobox rather than a dropdown?

    I was able to use your formula above with a combobox and confirmed the same behaviour.

     

    I would suggest to use the following code for the combobox, where we both check for IsBlank and we check for the number of selected rows:

    If(
     CountRows(ComboBox1_1.SelectedItems)=0 || IsBlank(ComboBox1_1),
     true,
     false
    )

     

    Cheers,

    Sancho

  • Verified answer
    Fitz Profile Picture
    14 on at

    Great. I will try that - it may not be correct for my problem. It is not a ComboBox (see attachment).

     

    My solution that works for Visible (I'm sure the function could be more succinct) is for an employees Title (Mr, Mrs etc...)

     

    If('DataCardValue-Title'.Selected.Value="Mr" Or 'DataCardValue-Title'.Selected.Value="Miss" Or 'DataCardValue-Title'.Selected.Value="Mrs" Or 'DataCardValue-Title'.Selected.Value="Ms" Or 'DataCardValue-Title'.Selected.Value="Dr" Or 'DataCardValue-Title'.Selected.Value="Prof" Or 'DataCardValue-Title'.Selected.Value="Rev",false,true)

     

    This shows and hides the asterisk as I intend.

     

    I will be able to use your solution in another part of the form - but if there are any further suggestions to simplify this (I'm happy I've got it working with my own function - I'm sure it could be improved).

     

    Thanks for the reply.

     

    DataCardValue-Title.png
  • Bochie Profile Picture
    237 on at

    Hi @Fitz ,

     

    Have you tried using Len function instead of IsBlank? If you specify a single string as the argument, the return value is the length as a number. If Len returns zero then it is blank.

     

    -bochie

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    For your dropdown, do you have 'AllowBlankSelection' to true?

     

    I was able to use a dropdown with your original formula

    If(IsBlank('DataCardValue-xxxxxx'),true,false)

    and it put the asterisk back after I de-selected the item

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard