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

How to get selected Dropdown values that is inside a gallery

Hi All,
This is quite complicated  I must admit or maybe i'm wrong..
I have a sharepoint list A

 

ItemNumber           Tittle                                                                                                                             Answer                Type

 
 
 

powerapps.png

 


On my canvas powerapps form i have used the SharePoint list A  list to pre populate selected values including the dropdowns.
I have used 2 Galleries that are nested

naijacoder_0-1609838092816.png

Output below

naijacoder_2-1609838246189.png


Now this is my issue the SharePoint List A is different from the SharePoint List B i which i would like to update the values with

I have single line of text fields in List B that i would like to update it with each of the Yes and No dropdowns above.

So for example I have the following single line of text fields 

Electrical 1 -  the first dropdown value should go to this field
Electrical 2 - the second dropdown value should go to this field


I'm happy to use a submit button or use onchange(Dropdown1)

Is this possible/feasible

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @naijacoder :

I'm not sure if I understood your request correctly, please help me point it out if there are any errors:

1\My List A and List B

1.JPG2.JPG

2\Settings

Gallery3-items

ListB

Gallery7-Items

ListA

Dropdown1-Items

["Yes","No"]

Dropdown1-OnChange

If( 
  "Are all free" in ThisItem.Title,
  Patch(ListB,Gallery3.Selected,{'Electrical 1':Dropdown1.SelectedText.Value}),
  "Have all pathways" in ThisItem.Title,
  Patch(ListB,Gallery3.Selected,{'Electrical 2':Dropdown1.SelectedText.Value})
)

The Result:

30.gif

Best Regards,

Bof

 

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @naijacoder :

I'm not sure if I understood your request correctly, please help me point it out if there are any errors:

1\My List A and List B

1.JPG2.JPG

2\Settings

Gallery3-items

ListB

Gallery7-Items

ListA

Dropdown1-Items

["Yes","No"]

Dropdown1-OnChange

If( 
  "Are all free" in ThisItem.Title,
  Patch(ListB,Gallery3.Selected,{'Electrical 1':Dropdown1.SelectedText.Value}),
  "Have all pathways" in ThisItem.Title,
  Patch(ListB,Gallery3.Selected,{'Electrical 2':Dropdown1.SelectedText.Value})
)

The Result:

30.gif

Best Regards,

Bof

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (89,782)