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

Newbie needs help with varying Dropdown choice in Gallery

Hello All,

I am already feeling nice and welcome in this community and I am looking forward to growing and learning more!

 

My question today is - 

If I have a Gallery with yes/no dropdowns, am I able to use an If statement to allow some specefic questions to have a third choice of "NA"? We dont want the users to have the option of saying "NA" for most of the questions

 

I have quite a tall order for somone with no experience 6 days ago, but I am up to the challenge!

Thank you so much!

Lindsey

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

 Hi @linds787 ,

 

Is it a SharePoint Yes or No column type column in this gallery? If so, then for SharePoint list, this column would only have Yes or No value. So you won't need to use a NA to show in the gallery.

 

But if it's not a Yes or No column, then you could set below formula in the Items property of the dropdown control:

If(Label1.Text="xxxx" || Label1.Text="xxxx" ||Label1.Text="xxxx",["Yes","No","NA"],["Yes","No"])

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

 Hi @linds787 ,

 

Is it a SharePoint Yes or No column type column in this gallery? If so, then for SharePoint list, this column would only have Yes or No value. So you won't need to use a NA to show in the gallery.

 

But if it's not a Yes or No column, then you could set below formula in the Items property of the dropdown control:

If(Label1.Text="xxxx" || Label1.Text="xxxx" ||Label1.Text="xxxx",["Yes","No","NA"],["Yes","No"])

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,207)