Hello everyone! In many cases, Most of the time we need Conditional Visibility in PowerApps. This is a very common scenario where we need to make the gallery appear based on drop-down selection. In this blog, we will create a simple employee form with a conditional appearance of the gallery.
From the below GIF screenshot, you can see the appearance of the gallery based on drop-down selection.

Figure 1.
Let’s start developing the form.
The Conditional Appearance of Gallery
-
In order to bind items in dropdown we are using fx = ["Select...","Yes","No"].
-
To create GalleryItems collections you can use Collect(GalleryItems,{PartnerName: ""});ClearCollect(GalleryItems,{}) OnSelect event of dropdown box.
- Now bind GalleryItems with the gallery.
-
Now we will set the visiblity of Gallery by making Visible fx = If(Dropdown1.Selected.Value="Yes",true)

Figure 2.
Calculation of Age Based on DOB Field

Figure 3.
- You also need to set the EndYear of the DOB field to Year(Now()).
Making Textbox Multi-line for Address Field

Figure 4.
After doing the above steps we are ready to launch our Employee Form. To learn more PowerApps formulas you can visit the link.
Hope you all like this article on Conditional Visibility in PowerApps and will to our site to learn more stuff on SharePoint, PowerApps, Azure, and flow.
Note: On 22nd October 2018, Microsoft has made SharePoint Server 2019 generally available, Ranjan Pandey, my colleague at Flexmind has written an article on the same. Have a look: “New Features of SharePoint 2019“.
Read more: You can visit the link to see more articles on PowerApps.