SOLVED

Conditional/Visible Fields Disappear Between Screens

%3CLINGO-SUB%20id%3D%22lingo-sub-1616253%22%20slang%3D%22de-DE%22%3ESubject%3A%20Conditional%2FVisible%20Fields%20Disappear%20Between%20Screens%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616253%22%20slang%3D%22de-DE%22%3EHi%20Stacey%2C%20%3CBR%20%2F%3E%20would%20be%20helpful%2C%20if%20you%20can%20give%20numbers%20to%20your%20pics.%20Additionally%20i%20would%20like%20to%20ask%20this%3A%20Is%20there%20a%20relationship%20between%20a%20meetings%20minutes%20protocoll%20and%20the%20assigned%20tasks%3F%20So%20far%20I%20can%20%CC%81t%20see%20this%2C%20also%20it%20would%20be%20good%20to%20have%20some%20screenshots%20on%20your%20functions%20for%20the%20main%20buttons%20%2F%20Forms.%20I%20suppose%20you%20have%202%20tables%3B%20one%20for%20the%20protocols%20and%20one%20for%20the%20tasks%20within%20each%20protocol%2C%20isn't%20it%3F%20Greets%2C%20Eva.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1614836%22%20slang%3D%22en-US%22%3EConditional%2FVisible%20Fields%20Disappear%20Between%20Screens%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1614836%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20a%20weird%20one%2C%20and%20the%20subject%20line%20might%20even%20be%20a%20little%20off%20because%20it's%20hard%20for%20me%20to%20explain.%26nbsp%3B%20Hoping%20someone%20can%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20app%20that%20has%20a%20main%2Fdefault%20screen%20with%20a%20form%20where%20some%20fields%20are%20%22conditional%22%20and%20are%20only%20viewable%20with%20certain%20drop-down%20selections.%26nbsp%3B%20The%20app%20is%20called%20%22Meeting%20Minutes%22%2C%20and%20certain%20fields%20hide%20and%20show%20based%20on%20dropdown%20field%20%22Meeting%20Type%22%20is%20selected.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20the%20screen%2Fform%20is%20first%20opened%2C%20the%20Meeting%20Type%20must%20be%20selected%20to%20determine%20which%20fields%20appear%20(Pic%20%22MM-1%22).%26nbsp%3B%20Then%20a%20meeting%20type%20is%20selected%20(example%3A%20%22Quality%20-%20Job%207%22)%20(Pic%20%22MM-2%22).%26nbsp%3B%20Once%20the%20meeting%20details%20are%20entered%2C%20the%20user%20would%20click%20the%20button%20at%20the%20bottom%20of%20the%20screen%20to%20go%20to%20a%202nd%20screen%20where%20they%20can%20add%20action%20items%20(these%20action%20items%20feed%20a%20separate%20SharePoint%20list)%20(Pic%20%22MM-3%22).%26nbsp%3B%20If%20the%20user%20saves%20from%20the%202nd%20screen%2C%20there%20is%20no%20problem.%26nbsp%3B%20However%2C%20if%20they%20need%20to%20go%20back%20to%20the%20meeting%20minutes%20screen%20and%20click%20%22Back%20to%20Meeting%20Minutes%22%2C%20the%20selected%20meeting%20type%20%22Quality%20-%20Job%207%22%20is%20STILL%20selected%20but%20all%20of%20the%20fields%20that%20should%20show%20for%20that%20meeting%20type%20do%20not%20appear%20(Pic%20%22MM-4%22).%26nbsp%3B%20Fortunately%2C%26nbsp%3Bthe%20data%20entered%20info%20the%20fields%20is%20still%20there%2C%20but%20the%20screen%20goes%20back%20to%20showing%20only%20the%20default%20fields%2C%20as%20if%20there%20is%20no%20meeting%20type%20selected.%26nbsp%3B%20You%20have%20to%20remove%20the%20meeting%20type%20then%20re-select%20%22Quality%20-%20Job%207%22%20then%20the%20associated%20fields%20show%20up%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20screenshots%20(UPDATED%20WITH%20PICTURE%20NUMBERING)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1614836%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616669%22%20slang%3D%22en-US%22%3EBetreff%3A%20Conditional%2FVisible%20Fields%20Disappear%20Between%20Screens%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616669%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153902%22%20target%3D%22_blank%22%3E%40Eva%20Vogel%3C%2FA%3E%26nbsp%3B-%20updated%20description%20and%20w%2Fpicture%20numbering%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1616772%22%20slang%3D%22de-DE%22%3ESubject%3A%20Conditional%2FVisible%20Fields%20Disappear%20Between%20Screens%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1616772%22%20slang%3D%22de-DE%22%3EHi%20Stacey%2C%20%3CBR%20%2F%3E%20Thanks%20for%20your%20screenshots.%20Looks%20like%20you%20have%20to%20insert%20a%20variable%2C%20that%20is%20able%20to%20store%20the%20filter%20before%20or%20when%20switching%20to%20the%202.%20Screen.%20With%20that%20variable%20it%20is%20possible%20to%20store%20the%20original%20filter%20conditions%20with%20that%20dropdowns.%20And%20on%20switching%20back%20you%20have%20to%20activate%20again%20that%20filter%20variable.%20Find%20out%20about%20variables%20in%20PowerApps%20Logics%2C%20like%20that%20tutorial%20here%20from%20April%20Dunham%2C%20maybe%20this%20helps...%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyYqrUpCH1Ao%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyYqrUpCH1Ao%3C%2FA%3E%3CBR%20%2F%3E%20Greets%2C%20Eva.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1620305%22%20slang%3D%22en-US%22%3EBetreff%3A%20Conditional%2FVisible%20Fields%20Disappear%20Between%20Screens%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1620305%22%20slang%3D%22en-US%22%3E%3CP%3EI%20actually%20just%20found%20the%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20realized%20that%20it%20wasn't%20doing%20the%20problem%20every%20single%20time%20-%20it%20was%20only%20happening%20when%20%22Quality%20-%20Job%207%22%20was%20selected%20as%20the%20meeting%20type.%26nbsp%3B%20Any%20other%20selected%20meeting%20type%20was%20keeping%20the%20conditional%20fields.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%2C%20I%20was%20switching%20the%20variables%20already%20in%20the%20OnChange%20of%20the%20Meeting%20Type%20dropdown%20field%2C%20BUT%20I%20had%20the%20vJob7%20variable%20also%20in%20the%20screen's%20OnVisible%20setting.%26nbsp%3B%20Once%20I%20removed%20it%20there%2C%20it%20works%20perfectly!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThanks%20for%20your%20help%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153902%22%20target%3D%22_blank%22%3E%40Eva%20Vogel%3C%2FA%3E%26nbsp%3B-%20you%20actually%20made%20me%20start%20thinking%20more%20about%20and%20troubleshooting%20the%20variables%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

This is a weird one, and the subject line might even be a little off because it's hard for me to explain.  Hoping someone can help me.

 

I have an app that has a main/default screen with a form where some fields are "conditional" and are only viewable with certain drop-down selections.  The app is called "Meeting Minutes", and certain fields hide and show based on dropdown field "Meeting Type" is selected. 

 

When the screen/form is first opened, the Meeting Type must be selected to determine which fields appear (Pic "MM-1").  Then a meeting type is selected (example: "Quality - Job 7") (Pic "MM-2").  Once the meeting details are entered, the user would click the button at the bottom of the screen to go to a 2nd screen where they can add action items (these action items feed a separate SharePoint list) (Pic "MM-3").  If the user saves from the 2nd screen, there is no problem.  However, if they need to go back to the meeting minutes screen and click "Back to Meeting Minutes", the selected meeting type "Quality - Job 7" is STILL selected but all of the fields that should show for that meeting type do not appear (Pic "MM-4").  Fortunately, the data entered info the fields is still there, but the screen goes back to showing only the default fields, as if there is no meeting type selected.  You have to remove the meeting type then re-select "Quality - Job 7" then the associated fields show up again.

 

Please see screenshots (UPDATED WITH PICTURE NUMBERING)

5 Replies
Hi Stacey,
would be helpful, if you can give numbers to your pics. Additionally i would like to ask this: Is there a relationship between a meetings minutes protocoll and the assigned tasks? So far I can´t see this, also it would be good to have some screenshots on your functions for the main buttons / Forms. I suppose you have 2 tables; one for the protocols and one for the tasks within each protocol, isn´t it? Greets, Eva.

@Eva Vogel - updated description and w/picture numbering

Hi Stacey,
Thanks for your screenshots. Looks like you have to insert a variable, that is able to store the filter before or when switching to the 2. screen. With that variable it is possible to store the original filter conditions with that dropdowns. And on switching back you have to activate again that filter variable. Find out about variables in PowerApps Logics, like that tutorial here from April Dunham, maybe this helps... https://www.youtube.com/watch?v=yYqrUpCH1Ao
Greets, Eva.
best response confirmed by StaceyLaney (Occasional Contributor)
Solution

I actually just found the problem.

 

I realized that it wasn't doing the problem every single time - it was only happening when "Quality - Job 7" was selected as the meeting type.  Any other selected meeting type was keeping the conditional fields.

 

Basically, I was switching the variables already in the OnChange of the Meeting Type dropdown field, BUT I had the vJob7 variable also in the screen's OnVisible setting.  Once I removed it there, it works perfectly!


Thanks for your help @Eva Vogel - you actually made me start thinking more about and troubleshooting the variables

Dear @StaceyLaney ,

I am happy to be helpful with that variables stuff. There is always new stuff to learn on the new logix, I know :smile: Thanks for your feedback!

 

Greets,

Eva