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 / Field visible only if ...
Power Apps
Answered

Field visible only if a choice is taken from the list

(0) ShareShare
ReportReport
Posted on by 909

Hello,

 

I have an app with sharepoint list. 

In one section I have a sharepoint choice list with three choices. I want to be able to make another window appear when one choice is made.

 

Within Visible section I made this formula:

If(DataCardValue12.selected.value = "Legal Law",true,false), but it does not work.

 

How can I make this happen?

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Elitezone 

    Where did you put this formula?  It should go in the Visible property of the Window you want to appear.  Are you getting any error messages? 

     

    If(DataCardValue12.Selected.Value = "Legal Law",true,false)

     

    Also, what do you mean by a Window?  There is no control called a Window in Power Apps so I'd love to see a screenshot for clarification.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Elitezone Profile Picture
    909 on at

    @mdevaney 

    Sorry - I meant another form. Another form appears.

     

    This situation is like that;

    I have a list from sharepoint that you can pick one choice out of three.

    If you pick Legal Law then another form will appear below that form. If you pick other two nothing will appear.

     

    When I use formula I get an error ParenClose (Formula has an ParenClose in a place wihere it expected Error)?

     

    Also is there any way to make this choice mandatory when it appears?

    I do not want to make it mandatory in sharepoint since there might appear some problems (form might be invisible for some requests and it will block the form).

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Elitezone 

     

    Can you share more details about the error that you are getting? What is stored in the "Items" property of the dropdown list? Is value a right column to refer? If you can share more details, we might be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Elitezone Profile Picture
    909 on at

    @yashag2255 

     

    This is what I have:

    Choices([@LegalLaw].Category)

     

    LegalLaw is a name of my Data Source (Sharepoint list), Category is a name of o dropdown list.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Elitezone 

    There was an extra comma at the end of my code.  Also, it appPlease use this code instead.

     

    If(DataCardValue12.Selected.Value= "Legal Law",true,false)

     

    To make the dropdown required we want to disable the Submit button for your form.  To do this place the following code in the DisplayMode property of the button.

     

    If(DataCardValue12.Selected.Value=Blank(), DisplayMode.Disabled, DisplayMode.Edit)

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Elitezone Profile Picture
    909 on at

    @mdevaney - thank you for your reply.

    Now it shows invalid argument type.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Elitezone 

    Please show the full error message in a screenshot.  It is missing details.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Elitezone 

     

    I think the error is coming because of small case values passed in the arguments, can you try to update the expression to: 

    If(DataCardValue12.Selected.Value= "Legal Law",true,false)

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Elitezone Profile Picture
    909 on at

    @mdevaney 

     

    Sorry I made a mistake - it should be DataCardValue11 not 12 (11 is a dropdown list). With DataCardValue12 it shows error as above.

    When i used it like that:

    If(DataCardValue11.Selected.Value= "Zmiana Prawna",true,false)

    It showed 3 polish errors (sorry I do not know how to change language):

     

    Elitezone_0-1599744136233.png

    (ParenClose)

    Elitezone_1-1599744201667.png

    (argument mismatch)

     

    Elitezone_2-1599744271441.png

    (unexpected sign)

     

     

     

  • Elitezone Profile Picture
    909 on at

    @yashag2255 

     

    Elitezone_0-1599744407998.png

    I added it like that. Still Errors.

    From now I'll write you details in polish since data in dropdown sharepoint list is also in polish language.

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 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard