Home

Conditionally show fields in PowerApps

%3CLINGO-SUB%20id%3D%22lingo-sub-30069%22%20slang%3D%22en-US%22%3EConditionally%20show%20fields%20in%20PowerApps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-30069%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20way%20to%20conditionally%20show%20fields%20based%20on%20the%20value%20of%20another%20field%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20if%20a%20user%20selects%20Yes%20in%20one%20field%20then%20other%20fields%20are%20show%2C%20same%20thing%20if%20the%20user%20selects%20NO%20then%20different%20set%20of%20fields%20are%20displayed%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-30069%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202158%22%20slang%3D%22en-US%22%3ERe%3A%20Conditionally%20show%20fields%20in%20PowerApps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202158%22%20slang%3D%22en-US%22%3E%3CP%3Eyou%20need%20to%20add%20this%20in%20your%20visible%20field%20%3A%20If(%3CSPAN%3ECMDBUpdateCompleted.Value%20%3D%20true%3Btrue%3Bfalse)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20condition%20shows%20a%20content%20only%20when%20your%20toggle%20is%20clicked%2C%20you%20can%20change%20the%20true%2Ffalse%20values%20depending%20what%20you%20need.%20Hope%20this%20helps%20you%20!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191453%22%20slang%3D%22en-US%22%3ERe%3A%20Conditionally%20show%20fields%20in%20PowerApps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191453%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20started%20developing%20in%20PowerApps%20and%20I%20am%20trying%20to%20make%20a%20SharePoint%20list%20Yes%2FNo%26nbsp%3Bfield%20titled%20'CMDBUpdateCompleted'%26nbsp%3Bhidden%20if%20the%26nbsp%3Bvalue%20of%20another%20Yes%2FNo%20field%26nbsp%3Btitle%20'CMDBNeeded'%20is%20equal%20'No%22%20and%20visible%20is%20the%20CMDB%20field%20is%20equal%20to%20%22Yes%22.%20I%20cannot%20get%20your%20formula%20to%20work%20for%20this.%20Can%20you%20point%20me%20in%20the%20right%20direction%20please%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-30690%22%20slang%3D%22en-US%22%3ERe%3A%20Conditionally%20show%20fields%20in%20PowerApps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-30690%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20need%20to%20play%20with%20the%20%22Visible%22%20property%20of%20the%20controls.%20In%20the%20below%20sample%2C%20the%20textbox%20control%20is%20hide%20and%20shown%20when%20the%20user%20selects%20the%20Checkbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20269px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F8542i778B1FD8A09CCDC6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22powerapps.png%22%20title%3D%22powerapps.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnd%20use%20the%20below%20formula%3C%2FP%3E%3CPRE%3ETextbox2.Visible%3A%26nbsp%3BCheckbox1.Value%0ATextbox3.Visible%3A%20!Checkbox1.Value%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Is there any way to conditionally show fields based on the value of another field?

 

So if a user selects Yes in one field then other fields are show, same thing if the user selects NO then different set of fields are displayed?

3 Replies

You need to play with the "Visible" property of the controls. In the below sample, the textbox control is hide and shown when the user selects the Checkbox.

 

 

powerapps.png

And use the below formula

Textbox2.Visible: Checkbox1.Value
Textbox3.Visible: !Checkbox1.Value

 

 

I just started developing in PowerApps and I am trying to make a SharePoint list Yes/No field titled 'CMDBUpdateCompleted' hidden if the value of another Yes/No field title 'CMDBNeeded' is equal 'No" and visible is the CMDB field is equal to "Yes". I cannot get your formula to work for this. Can you point me in the right direction please? 

you need to add this in your visible field : If(CMDBUpdateCompleted.Value = true;true;false)

 

This condition shows a content only when your toggle is clicked, you can change the true/false values depending what you need. Hope this helps you !

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies