Requirement: ForAll Function with Power apps Gallery
Add vertical gallery control, Label and TextInput controls and button to the screen.
Once the user save the data then it will save in the gallery and also in the collection.
App OnStart-
Where, colVariables is the variable of the collection, ForAll is the String value.
ClearCollect(colVariables,{colvarVariableOne: "ForAll"});
![](http://rishandigital.com/wp-content/uploads/2023/05/Screenshot-2023-05-17-114240.png)
Two Textinput controls, Button,
where,
- Employee is the collection of application,
- ID, Name are the labels of the collection,
- Textinput6,textinput6_1 are the textinput control names.
OnSelect Property–
Collect(Employee,{ID:Textinput6.Text,Name:Textinput6_1.Text})
Gallery- Items Property: Employee
![](http://rishandigital.com/wp-content/uploads/2023/05/Screenshot-2023-05-17-115508.png)
Now Save the Data and the data saved in gallery and collection.
![](http://rishandigital.com/wp-content/uploads/2023/05/Screenshot-2023-05-17-115719.png)
![](http://rishandigital.com/wp-content/uploads/2023/05/Screenshot-2023-05-17-115806-1024x703.png)