cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GET123
Helper I
Helper I

Power Apps Component Default Value

is there a way to pass default values to the Vertical  Navigation  component ?

 I have vertical  component.  

NavItems:

Table(
{
Title: " Home",
ID: 1,
Icon: Icon.Home
},

{
Title: "Employee",
ID: 2,
Icon: People
}

)

onselect : Set(NavTabSelected,ThisItem.ID)

CurrentOption( Output property) : NavTabSelected 

 I wanted  the Employee information ( Gallery)  show up   by default .  Currently,  it  show up  when  the user  select  "Employee"(  Gallery _ Visible  : leftNavigation.CurrentOption=2) 

 

Thanks 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @GET123 :

You could set the gallery's visible property to:

If(IsBlank(leftNavigation.CurrentOption),2,leftNavigation.CurrentOption)=2

Because the value of leftNavigation.CurrentOption is empty by default (when the user has not made any selections).

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @GET123 :

You could set the gallery's visible property to:

If(IsBlank(leftNavigation.CurrentOption),2,leftNavigation.CurrentOption)=2

Because the value of leftNavigation.CurrentOption is empty by default (when the user has not made any selections).

Best Regards,

Bof

GET123
Helper I
Helper I

@v-bofeng-msft , Thank you so much 

It works 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,695)