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 Field based ...
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?

Untitled.png
Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    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"

     

     

  • autumn Profile Picture
    9 on at

    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

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    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

    The third one worked!! Thanks!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard