Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Pass variables from Gallery to next screen


Sorry i am new to power apps and need some guidance.

I have a Add Button to create a new row of data from List Of Software Gallery  

Add Button Code: Collect(List Of Software, Count Rows (List Of Software))
The Gallery consists of text fields and checkbox. Whenever i clicked on the Add Button, a new row in Gallery will be added.

Now the question is, how do i pass the text field data and checkbox (true,false) data to different screen?

Thanks! Appreciate for the assistance

Super User
Super User

Hi @Newbie2020 


Do you want to pass the text field date and checkbox value of the newest row that gets added when you click on the Add Button or that of another row to a different screen? Also, how are you navigating to another screen? Does the user have to click on a row within the gallery or are you expecting the user to be taken to another screen when they click on the Add Button? 


Let me know and we can solve for it. 


If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 



Hardit Bhatia

Microsoft Business Applications MVP

Microsoft Certified Trainer MCT

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Thank you for your reply. Yes, i would like to pass those info to next screen when the Next Button is clicked. Kindly refer to the attachement

Hi @Newbie2020 ,


Use a collection to achieve your goal. Insert into OnSelect property of the button:


and in myData collection you will have all infos stored in gallery including the options selected in checkboxes control.

Give it a try !


Hope it helps !

Hi @gabibalaban ,

Thank you for your reply.

The "+" sign is my button to add new row in collection.  Is there a way to set " Only 3 rows can be added"?
Coding:     Collect(ListOfSoftware,CountRows(ListOfSoftware))


Once i have the data, how do i add them to one drive excel file? i am only able to add the first row. Software Record is the table in my onedrive file.

MachineInfo: TextInput3.Text,
SerialNoInfo: TextInput3_1.Text,
SoftwareName: TextInput4.Text,
Installation: Checkbox1.Value,
Uninstallation: Checkbox2.Value,
Freeware: Checkbox3.Value,
Lisence: Checkbox4.Value,
ReasonOfRequest: TextInput5.Text,
Status: "Pending",
RequestorName: TextInput7.Text,
RequestorDesignation: TextInput7_2.Text,
RequestorEmail: TextInput7_3.Text,
RequestDate: TextInput7_1.Text,
Approver: _selectedApprover.UserPrincipalName,
EmailTitle: TextInput1.Text,
Detail: TextInput1_1.Text



Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,956)