Hide or show field based on another field value

%3CLINGO-SUB%20id%3D%22lingo-sub-36068%22%20slang%3D%22en-US%22%3EHide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36068%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20have%20the%20user%20make%20a%20selection%20from%20a%20SP%20choice%20field%2C%20and%20have%20other%20fields%20either%20get%20hidden%20or%20displayed%20based%20on%20that%20selection.%20Is%20this%20scenario%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20user%20selects%20Option%201%20in%20the%20first%20field%2C%20%22Additional%20Text%20entry%20field%201%22%20is%20displayed%2C%20and%20%22Additional%20Text%20entry%20field%202%22%20is%20hidden.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChoice%20Field%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BOption%201%3C%2FP%3E%3CP%3E%3CSTRIKE%3E%26nbsp%3B%20%26nbsp%3BOption%202%3C%2FSTRIKE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditional%20Text%20entry%20field%201%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRIKE%3EAdditional%20Text%20entry%20field%202%3C%2FSTRIKE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-36068%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-241514%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241514%22%20slang%3D%22en-US%22%3E%3CP%3EBingo!%20Solution%20found%20here%3A%3C%2FP%3E%3CP%3E%3CEM%3EIf(%22triangle%22%20in%20MyListBox.SelectedItems.Value%2C%20true)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Efor%20full%20details%20follow%3A%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.c-sharpcorner.com%2Farticle%2Fusing-listbox-control-in-microsoft-powerapps%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.c-sharpcorner.com%2Farticle%2Fusing-listbox-control-in-microsoft-powerapps%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241506%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241506%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20get%20a%20response%20on%20this%3F%20I%20would%20like%20to%20also%20know%20how%20to%20do%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154544%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154544%22%20slang%3D%22en-US%22%3E%3CP%3EAlong%20this%20same%20line%2C%20I'd%20like%20to%20show%20a%20date%20field%20based%20on%20the%20selection%20of%20an%20item%20from%20a%20choice%20field.%26nbsp%3B%20Works%20perfect%20when%20the%20choice%20field%20only%20allows%201%20choice%20however%2C%20my%20choice%20field%20allows%20multiple%20selections.%20So%20if%20more%20than%20just%20the%20one%20option%20is%20selected%2C%20it%20then%20hides%20the%20other%20field%20I%20want%20to%20show.%3CBR%20%2F%3E%20So%2C%20the%20question%20is%20how%20to%20show%20the%20date%20field%20based%20on%20the%20inclusion%20of%20an%20option%20in%20a%20multiple%20choice%20field.%20So%20far%2C%20I've%20only%20gotten%20it%20to%20work%20when%20the%20option%20is%20the%20last%20item%20chosen.%26nbsp%3B%26nbsp%3B%20Do%20you%20see%20how%20to%20make%20it%20work%20when%20my%20one%20option%20is%20selected%2C%20regardless%20if%20others%20are%20too%3F%3C%2FP%3E%0A%3CP%3EVisible%20property%20of%20Date%20field%3A%20If(DataCardValue4.Selected.Value%20in%20%22Assignment%20Extension%22%2C%20true%2Cfalse)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36122%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36122%22%20slang%3D%22en-US%22%3E%3CP%3EYes.%20You%20will%20just%20need%20to%20add%20a%20condition%20to%20the%20OnVisible%20property%20of%20the%20field%20you%20want%20to%20hide.%20The%20If()%20function%20is%20almost%20the%20same%20as%20the%20one%20in%20Excel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20would%20look%20something%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETextbox2%20OnVisible%20property%3A%3C%2FP%3E%3CP%3EIf(DropDownOptions.Selected.Value%3D%22Option%201%22%2C%20false%2C%20true)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670427%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670427%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F185633%22%20target%3D%22_blank%22%3E%40Jose%20Zaldivar%3C%2FA%3E%26nbsp%3BI%20just%20want%20to%20thank%20you%20!!!!%20%3A)%3C%2Fimg%3E%20I%20was%20looking%20for%20this%20solution%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1123973%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123973%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F33844%22%20target%3D%22_blank%22%3E%40Audrie%20Gordon%3C%2FA%3E%26nbsp%3Bit's%20been%204%20years%20since%20this%20post%20and%20I'm%20hoping%20you%20can%20help%20me%20decipher%20with%20the%20latest%20PowerApps%20version%20as%20of%20today.%20I'm%20trying%20to%20decipher%20between%20field%20names%20and%20DataCard%20names.%20I%20have%20the%20following%20details%20where%20I%20want%20the%20Previous%20Version%20Exam%20Location%20card%20to%20display%20when%20the%20Update%20value%20is%20selected%20in%20the%20New%20or%20Update%20Course%20card%20field%20(Note%3A%20This%20is%20all%20pulling%20from%20a%20SharePoint%20list).%3C%2FP%3E%3CP%3EDataSource%3A%26nbsp%3B%5B%40'Exam%20Question%20Requests'%5D%3C%2FP%3E%3CP%3EDataField%3A%26nbsp%3B%22New_x0020_or_x0020_Update_x0020_%22%3C%2FP%3E%3CP%3ECard%20name%20(item%20in%20condition)%3A%26nbsp%3BNew%20or%20Update%20Course_DataCard1_2%3C%2FP%3E%3CP%3ECard%20name%20(item%20to%20be%20invisible%20until%20condition%20is%20met)%3A%26nbsp%3BPrevious%20Version%20Exam%20Location%20(Shared%20Drive%20Path)_DataCard1_2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20condition%20I%20tried%20on%20the%20%3CSTRONG%3EVisible%3C%2FSTRONG%3E%20attribute%20for%20the%20%3CSTRONG%3EPrevious%20Version%20Exam%20Location%3C%2FSTRONG%3E%20card%20and%20it%20doesn't%20work.%20I'm%20not%20a%20developer%2C%20so%20trying%20to%20get%20the%20exact%20correct%20condition%20example%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIf(Choices(%5B%40'Exam%20Question%20Requests'%5D.New_x0020_or_x0020_Update_x0020_).Value%3D%22Update%22%2C%20true%2C%20false)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20tips.%3C%2FP%3E%3CP%3EKris%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1123980%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F529141%22%20target%3D%22_blank%22%3E%40kthayer%3C%2FA%3E%26nbsp%3B%20Okay%2C%20I%20finally%20found%20a%20direct%20answer%20in%20another%20blog%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf(DataCardValue4_2.Selected.Value%20%3D%20%22Update%22%2C%20true%2C%20false)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1254887%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1254887%22%20slang%3D%22en-US%22%3EThis%20method%20works%20for%20%22choice%22%20items%2Fdata%20types%20from%20sharepoint%20list%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2479339%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2479339%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F529141%22%20target%3D%22_blank%22%3E%40kthayer%3C%2FA%3E%26nbsp%3BThanks%20for%20linking%20to%20that%20blog.%20I%20am%20trying%20to%20use%20the%20same%20pattern%20for%20a%20similar%20problem%2C%20but%20seem%20to%20be%20hitting%20a%20roadblock.%20I%20want%20the%20%22GPA%20Phase%22%20data%20card%20to%20be%20visible%20only%20if%20the%20option%20%22Language%20Hours%22%20is%20chosen%20from%20the%20drop%20down%20list%20as%20the%20value%20for%20the%20%22Type%20of%20Activity%22%20data%20card.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20what%20I'm%20using%3A%3C%2FP%3E%3CP%3EIF%20(DataCardValue11_1.Selected.Value%20%3D%20%22Language%20Hours%22%2Ctrue%2Cfalse)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20attaching%20screenshot%20as%20well%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202021-06-24%20at%2010.50.21%20AM.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F290860iCB8D14F449F0501B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202021-06-24%20at%2010.50.21%20AM.png%22%20alt%3D%22Screen%20Shot%202021-06-24%20at%2010.50.21%20AM.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2482103%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2482103%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086700%22%20target%3D%22_blank%22%3E%40tcoates88%3C%2FA%3E%26nbsp%3B%2C%20I%20don't%20do%20much%20support%20with%20this%20form%20and%20I'm%20not%20a%20developer.%20The%20only%20thing%20I%20wondered%20is%20if%20the%20%22Language%20Hours%22%20is%20a%20problem%20because%20it's%20two%20words%20and%20maybe%20there's%20a%20backend%20value%20that%20puts%20something%20between%20them%3F%20Sorry%20I%20can't%20offer%20much%20help.%20Hopefully%20someone%20else%20can%20chime%20in%20who%20knows%20what%20they're%20talking%20about.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2484200%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2484200%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F529141%22%20target%3D%22_blank%22%3E%40kthayer%3C%2FA%3E%26nbsp%3Bthanks%20for%20your%20reply!%20I%20was%20thinking%20the%20same%20thing...just%20trying%20to%20figure%20out%20what%20that%20backend%20value%20might%20be.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2484615%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2484615%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086700%22%20target%3D%22_blank%22%3E%40tcoates88%3C%2FA%3E%26nbsp%3Bin%20your%20screenshot%20the%20If%20statement%20on%20the%20Visible%20property%20is%20missing%20a%20closing%20bracket%20)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EIntranet%2C%20SharePoint%2C%20Website%20and%20Power%20Platform%20Manager%20(and%20classic%201967%20Morris%20Traveller%20driver)%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2487675%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2487675%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1086700%22%20target%3D%22_blank%22%3E%40tcoates88%3C%2FA%3E%26nbsp%3BI%20don't%20see%20any%20problem%20with%20the%20formula%20you%20written%20in%20your%20above%20reply%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EIf(DataCardValue11_1.Selected.Value%20%3D%20%22Language%20Hours%22%2C%20true%2C%20false)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMake%20sure%20you%20are%20using%20the%20correct%20value%20(%3CSPAN%3E%3CSTRONG%3E%22Language%20Hours%22%3C%2FSTRONG%3E)%20as%20given%20in%20backend%20which%20is%20%3CSTRONG%3Ecase-sensitive%3C%2FSTRONG%3E.%20Also%2C%20in%20the%20screenshot%20you%20attached%2C%20you%20are%20missing%20closing%20bracket%26nbsp%3B%22%3CSTRONG%3E)%3C%2FSTRONG%3E%22%20at%20the%20end%20of%20formula.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ELet%20me%20know%20if%20this%20is%20not%20working%20for%20you%20or%20if%20there%20is%20any%20error%2C%20please%20post%20the%20error%20message%20here%20by%20replying%20to%20this%20message.%3C%2FSPAN%3E%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1127996%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20or%20show%20field%20based%20on%20another%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127996%22%20slang%3D%22en-US%22%3EBlog%20URL%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.spsimply.com%2Fhome%2F2019%2F5%2F8%2Fpowerapps-show-field-based-on-value-in-another-field%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.spsimply.com%2Fhome%2F2019%2F5%2F8%2Fpowerapps-show-field-based-on-value-in-another-field%3C%2FA%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I would like to have the user make a selection from a SP choice field, and have other fields either get hidden or displayed based on that selection. Is this scenario possible?

 

When user selects Option 1 in the first field, "Additional Text entry field 1" is displayed, and "Additional Text entry field 2" is hidden. 

 

Choice Field

   Option 1

   Option 2

 

Additional Text entry field 1

 

Additional Text entry field 2

 

 

14 Replies

Yes. You will just need to add a condition to the OnVisible property of the field you want to hide. The If() function is almost the same as the one in Excel.

 

It would look something like this:

 

Textbox2 OnVisible property:

If(DropDownOptions.Selected.Value="Option 1", false, true)

Along this same line, I'd like to show a date field based on the selection of an item from a choice field.  Works perfect when the choice field only allows 1 choice however, my choice field allows multiple selections. So if more than just the one option is selected, it then hides the other field I want to show.
So, the question is how to show the date field based on the inclusion of an option in a multiple choice field. So far, I've only gotten it to work when the option is the last item chosen.   Do you see how to make it work when my one option is selected, regardless if others are too?

Visible property of Date field: If(DataCardValue4.Selected.Value in "Assignment Extension", true,false)

Did you get a response on this? I would like to also know how to do this.

Bingo! Solution found here:

If("triangle" in MyListBox.SelectedItems.Value, true)

for full details follow:

https://www.c-sharpcorner.com/article/using-listbox-control-in-microsoft-powerapps/

@Jose Zaldivar I just want to thank you !!!! :) I was looking for this solution 

@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)

This method works for "choice" items/data types from sharepoint list

@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:

Screen Shot 2021-06-24 at 10.50.21 AM.png 

@tcoates88 , I don't do much support with this form and I'm not a developer. The only thing I wondered is if the "Language Hours" is a problem because it's two words and maybe there's a backend value that puts something between them? Sorry I can't offer much help. Hopefully someone else can chime in who knows what they're talking about. :)

@kthayer thanks for your reply! I was thinking the same thing...just trying to figure out what that backend value might be. 

@tcoates88 in your screenshot the If statement on the Visible property is missing a closing bracket )

 

Rob
Los Gallardos
Intranet, SharePoint, Website and Power Platform Manager (and classic 1967 Morris Traveller driver)

@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.