cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmc_103
Helper III
Helper III

Enable Gallery OnSelect when the icon is clicked

Hi everyone,

I have an icon inside the gallery and disabled the gallery's onSelect function.

Is there a way to enable it only when the icon is clicked?

 

Appreciate your help!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
dmc_103
Helper III
Helper III

Hi, just figured I can use this workaround:

Gallery:

* Not use Icon since the gallery is Selectable anyways. Selectable = true

* Set Template fill to: If(ThisItem.IsSelected, RGBA(176, 196, 222, 1))

*Default = {}  (So the gallery will not select the Top on the list)

 

For my Text box: Gallery2_3.Selected.emailaddress

 

 

 

 

View solution in original post

11 REPLIES 11
Jagadeeshk
Responsive Resident
Responsive Resident

Pls elaborate further with ateps and scrn shots

dmc_103
Helper III
Helper III

Hi @Jagadeeshk ,

Here's what I want to accomplish:

Once the (add) icon is clicked, the email address will show in the TextInput

gallery.JPG

 

 

Jagadeeshk
Responsive Resident
Responsive Resident

Use a variable at on select of add icon set(variable, true).

Use the variable at visible property of textbox where you add email. Once save set variable to false

Hi @Jagadeeshk 

Thank you but I don't think I understand this solution completely.

* Add icon - OnSelect: Select(Parent) which is by default

                     Question: Since this icon is already inside the gallery, should I set gallery's Selectable to false then?

*Textbox - this should always be visible.

                  Question: Why set a variable in the Textbox's visible property? 

 

If you have the steps and/or screenshots, would be very helpful. Thanks!

 

 

 

 

Jagadeeshk
Responsive Resident
Responsive Resident

Is my understanding correct, 

Add icon is inside gallery, text box is outside, and you want to enable/show text box only when you click add icon.

dmc_103
Helper III
Helper III

Add icon is inside gallery - yes, correct

text box is outside - yes, correct

you want to enable/show text box only when you click add icon - No, the text box should always be visible. When the icon is clicked, the email address should show in the text box.

Jagadeeshk
Responsive Resident
Responsive Resident

Ok, then at text box default =gallery. Selected.emailcolumn name.

Or text box default = gallery. Selected.label of email.text

dmc_103
Helper III
Helper III

Hi, yes I have this in my text box's default. However, I would like to make it blank by default and only show the email when the icon in the gallery is clicked.

 

Currently, when I search for "Rose", the FIRST one from the gallery always shows in the Text box. How can I keep the text box empty and only show the email when I select the icon?

 

rose_capture.JPG

Jagadeeshk
Responsive Resident
Responsive Resident

Try,

Set a variableto true at add icon.

At textbox default =if(variable, gallery. Selected, "")

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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