SOLVED

Change Visible of Datacard immediately

%3CLINGO-SUB%20id%3D%22lingo-sub-1757330%22%20slang%3D%22en-US%22%3EChange%20Visible%20of%20Datacard%20immediately%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1757330%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Folks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20new%20in%20PowerApps%20but%20in%20the%20past%20I%20edited%20my%20forms%20with%20InfoPath%20and%20everything%20was%20fine%20for%20me.%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20we%20update%20to%20SarePoint%20online%20and%20we%20need%20to%20use%20PowerApps%20so%20here%20is%20my%20special%20question%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20toggle%20the%20visible%20of%20a%20Datacard%20based%20on%20the%20Value%20from%20a%20dropdown%20list.%20The%20special%20is%2C%20that%20the%20Values%20comes%20from%20a%20sharepoint%20list.%20So%20the%20normal%20way%20with%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Evisible%20%3D%20ThisItem.Vertragsart.value%20%3D%20%22Lizenz%22%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20not%20working%20for%20me.%20I%20need%20the%20update%26nbsp%3Bimmediately%20in%20the%20form.%20If%20I%20save%20the%20from%20than%20the%20DataCard%20is%20Visible%20or%20not%20but%20I%20have%20to%20make%20the%20DataCards%20visible%20or%20not%20but%20I%20need%20it%26nbsp%3Bimmediately%20in%20the%20EditScreen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20add%20some%20Pics%20for%20better%20understanding%20%3B)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%20and%20thanks%20for%20hints%20and%20solutions.%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%20image-alt%3D%22Pic%201.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225074iE451C3464820A075%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Pic%201.png%22%20alt%3D%22Pic%201.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Pic%202.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225075iE602D6188F113AA5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Pic%202.png%22%20alt%3D%22Pic%202.png%22%20%2F%3E%3C%2FSPAN%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-1757330%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-1790613%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Visible%20of%20Datacard%20immediately%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1790613%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F823497%22%20target%3D%22_blank%22%3E%40Kevin1585%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20found%20the%20solution.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20formula%3A%26nbsp%3B%3C%2FP%3E%3CP%3Evisible%20%3D%20%3CSTRONG%3EDataCardValueX.Selected.Value%3C%2FSTRONG%3E%20%3D%20%22Lizenz%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%40%26nbsp%3B%3CSPAN%3EShane%20Young%20and%20his%20tutorial%26nbsp%3Bvideos.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi Folks,

 

I'm new in PowerApps but in the past I edited my forms with InfoPath and everything was fine for me. 

Now we update to SarePoint online and we need to use PowerApps so here is my special question:

 

I need to toggle the visible of a Datacard based on the Value from a dropdown list. The special is, that the Values comes from a sharepoint list. So the normal way with 

 

visible = ThisItem.Vertragsart.value = "Lizenz"

 

is not working for me. I need the update immediately in the form. If I save the from than the DataCard is Visible or not but I have to make the DataCards visible or not but I need it immediately in the EditScreen.

 

I will add some Pics for better understanding ;)

 

Kind regards and thanks for hints and solutions.

 

Pic 1.pngPic 2.png

 

 

1 Reply
Highlighted
Best Response confirmed by Kevin1585 (New Contributor)
Solution

@Kevin1585 

I found the solution. 

 

the formula: 

visible = DataCardValueX.Selected.Value = "Lizenz"

 

Thanks @ Shane Young and his tutorial videos.