Forum Discussion
Hide or show field based on another field value
Audrie Gordon it's been 4 years since this post and I'm hoping you can help me decipher with the latest PowerApps version as of today. I'm trying to decipher between field names and DataCard names. I have the following details where I want the Previous Version Exam Location card to display when the Update value is selected in the New or Update Course card field (Note: This is all pulling from a SharePoint list).
DataSource: [@'Exam Question Requests']
DataField: "New_x0020_or_x0020_Update_x0020_"
Card name (item in condition): New or Update Course_DataCard1_2
Card name (item to be invisible until condition is met): Previous Version Exam Location (Shared Drive Path)_DataCard1_2
Here's the condition I tried on the Visible attribute for the Previous Version Exam Location card and it doesn't work. I'm not a developer, so trying to get the exact correct condition example:
If(Choices([@'Exam Question Requests'].New_x0020_or_x0020_Update_x0020_).Value="Update", true, false)
Thanks for any tips.
Kris
kthayer Okay, I finally found a direct answer in another blog as follows:
If(DataCardValue4_2.Selected.Value = "Update", true, false)
- kthayerJan 24, 2020Copper ContributorBlog URL: https://www.spsimply.com/home/2019/5/8/powerapps-show-field-based-on-value-in-another-field
- tcoates88Jun 24, 2021Copper Contributor
kthayer Thanks for linking to that blog. I am trying to use the same pattern for a similar problem, but seem to be hitting a roadblock. I want the "GPA Phase" data card to be visible only if the option "Language Hours" is chosen from the drop down list as the value for the "Type of Activity" data card.
Here's what I'm using:
IF (DataCardValue11_1.Selected.Value = "Language Hours",true,false)
I'm attaching screenshot as well:
- ganeshsanapJun 26, 2021MVP
tcoates88 I don't see any problem with the formula you written in your above reply:
If(DataCardValue11_1.Selected.Value = "Language Hours", true, false)
Make sure you are using the correct value ("Language Hours") as given in backend which is case-sensitive. Also, in the screenshot you attached, you are missing closing bracket ")" at the end of formula.
Let me know if this is not working for you or if there is any error, please post the error message here by replying to this message.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.