Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Show/Hide Field based on combo box selection

(0) ShareShare
ReportReport
Posted on by 9

Hello, I can't seem to get this to function and could use some guidance. We have a field called "Invoice Delivery Method" (DataCardValue45) with two choices - Print and Manual E-Bill.

 

If Manual E-Bill is selected, we would like the E-Bill Email Address text field to be both visible and required. Seems simple enough, and all of the answers I find point to the same formula, but it's not working. I have tried this formula on both the Visible and the Required property of the E-Bill Email Address Data Card, but I keep getting an error.

 

If(DataCardValue45.Selected.Value="Manual E-Bill",true,false)

 

The error just indicates the field types don't match, which I already know. They shouldn't have to, right? Where am I going wrong?

  • autumn Profile Picture
    9 on at
    Re: Show/Hide Field based on combo box selection

    The third one worked!! Thanks!

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: Show/Hide Field based on combo box selection

    Hi @autumn 

     

    All these works for me. Can you try these

     

    First(DataCardValue45.SelectedItems).Value="Manual E-Bill"
    
    OR
    
    DataCardValue45.Selected.Value="Manual E-Bill"
    
    OR
    
    Text(DataCardValue45.Selected.Value) = "Manual E-Bill"

     

  • autumn Profile Picture
    9 on at
    Re: Show/Hide Field based on combo box selection

    It is Choices('Invoice Delivery Method') from Dataverse.

     

    choices.png

     

    I receive the same error when using your code on the E-Bill Email Address control.

     

    code.png

     

    sameerror.png

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: Show/Hide Field based on combo box selection

    Hi @autumn 

     

    What is the Items property of DataCardValue45? Is it the Choice field in Shapepoint?

     

    If it's a choice field then

    DataCardValue45.Selected.Value="Manual E-Bill"

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1