Hey guys
Really stumped on this one!
I have a Gallery in my app that my users track their coaching with, and I want to make the bottom two dropdowns mandatory only when my user chooses that they coached that person. If they choose something like "not applicable" or "vacation", then I don't need the bottom two dropdowns to be mandatory.
CoachingDropDown is the dropdown where my users choose if they "Coached", "Vacation","Sick" or "Not applicable" for the period. AdoptionDropDown and CurrectBPDropDown are the two dropdowns that I need turned mandatory if they choose "Coached" and if not, then the error message to pop up. The below code is just not working for me. Any idea?
If(CoachingDropDown.SelectedText.Value<>"Coached this week | A déjà reçu de l’encadrement",If(CoachingDropDown.SelectedText.Value="Coached this week | A déjà reçu de l’encadrement"&&CurrentBPDropDown.SelectedText.Value<>"Not applicable | Sans objet"&&AdoptionDropDown.SelectedText.Value<>"Not Applicable | Sans objet",Patch(CoachingData,ThisItem,{Coached:CoachingDropDown.Selected,CoachingType:CoachingTypeDropDown.Selected,BestPractices:CurrentBPDropDown.Selected,AdoptionStaircase:AdoptionDropDown.SelectedText.Value}),UpdateContext({ErrorMsg: true })))