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 / HIDE OR SHOW FIELDS BA...
Power Apps
Answered

HIDE OR SHOW FIELDS BASED ON LIST OPTION

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

After I consulted a lot of websites and forums .. i don't find my response.

I hope that someone can help me.

 

I created a form with table. 

One of them data type is an option.  As you can see i added a list of choice.

Irobot__1-1666337683006.png

 

 

I would like in my Forms to show or hide a Field base on This table option.

But i put the Following code but it does't worked : 

If(DataCardValue5.Selected.Value="Autre choix";true) 

 

Irobot__0-1666337588213.png

 

 

"prix d'acceptabilite" is not the field that i want to show. 

the field that i want to show are not visible becase the code is not good.

 

Could you help me please ?

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi there, 
    select the item (e.g. TextInput, DropDown) that you want to show, when "prix d'acceptabilite" is "Autre choix". Go to it's 'Visible' property and try: 
    'DataCardValue5'.Text = "Autre choix"

     

    That way if someone types "Autre choix" in "prix d'acceptabilite" the item you want to show will appear.  

  • Irobot_ Profile Picture
    14 on at

    Hi Lucas ! 

    Thank you for answer !

    It seem that  the code doesn't work. 

    Irobot__0-1666343415204.png

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Irobot_,
    thanks for your reply and sorry that it doesn't work. 
    So you are trying to make "prix d'acceptabilite" visible if "Autre choix" is selected in "Clientele_Cible". Is that correct?

    And "Clientele_Cible" is a ComboBox, right?

    If so try to put this into "Visible" property of "prix d'acceptabilite":
    If(ComboBoxName.Selected.table = "Autre choix", true)

    In my case I named the table "Clientele_Cible" and added "Autre choix" as a choice so I can select it in the ComboBox. So table has to be the name of your table that gives you the different choices in your ComboBox. When I select "Autre choix" in my ComboBox it shows "prix d'acceptabilite" otherwise it's hidden. 

    Hope this helps, but otherwise this might be more complex than I've expected and I probably can't help. 😞 

    Test.png
  • Irobot_ Profile Picture
    14 on at

    Hi,

    same way it doesn't worked x)

    but thank you for your proposition. 

    "clientele cible" is a data table when i put several choice :

    Irobot__0-1666353525957.png

    Irobot__1-1666353570745.png

     

    I tried to put many code in visible proprety but it doesn't work

  • Irobot_ Profile Picture
    14 on at

    Irobot__3-1666354306532.png

     

  • Irobot_ Profile Picture
    14 on at

    Irobot__4-1666354521740.png

     

  • Irobot_ Profile Picture
    14 on at

    Hi everyone,

     

    Any helps please ?

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard