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

Notifications

Announcements

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,228 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.

     

  • 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,228 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard