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 Field based ...
Power Apps
Unanswered

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?

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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard