Create a Tabbed Form in Canvas Powerapp

We can create a tabbed form in the Power apps by follow the following steps.

Step 1: Click on + Insert and add a Text label control. And set its Text property to the "Creating a tabbed Form in Power Apps". And design it according to the need.

Tabbed Form in Power Apps

Step 2: Click on + Insert, and click on Edit form control to the canvas app. Add it to the Data source.

Tabbed Form in Power Apps

Step 3: Add the fields to the Form control and set its Default mode to New.

Tabbed Form in Power Apps

Step 4: Add a Blank horizontal gallery control to the screen.

Tabbed Form in Power Apps

Step 5: Set its Items property to the array of records.

Power Apps Formula

[
{
Title: "Tab 1",
Id: 1
},
{
Title: "Tab 2",
Id: 2
},
{
Title: "Tab 3",
Id: 3
},
]
Tabbed Form in Power Apps

Step 6: Select the Gallery and click on the Edit (Pencil icon) icon.

Tabbed Form in Power Apps

Step 7: After this click on + Insert and then add a Button control this automatically adds the button control inside the gallery.

Tabbed Form in Power Apps

Step 8: Select the first button set its Text property to the following Powerapps formula.

Power Apps Formula

ThisItem.Title
Tabbed Form in Power Apps
Tabbed Form in Power Apps

Step 9: Drag the Gallery control and place it to the desired position.

Tabbed Form in Power Apps

Step 10: Select those data cards one by one which will be visible when the Tab 1 is selected, and Set their Visible property to the following apps formula.

Power Apps Formula

Gallery1.Selected.Id=1

Here, Gallery1 is the name of our gallery control.

Tabbed Form in Power Apps

Note: We can make a card control visible in two tabs, by writing the following formula.

Power Apps Formula

Gallery1.Selected.Id=1 Or Gallery1.Selected.Id=3
Tabbed Form in Power Apps

Similarly, we can place powerapps formula on Visible and other properties like Required we can leverage all by the help of selected tab.

Step 11: To give the visual representation of the selected tab to the user, Select the first button of the gallery and set the Fill property of the Button control in the Gallery to the following powerapps formula.

Power Apps Formula

If(Gallery1.Selected.Id=ThisItem.Id, RGBA(56, 96, 178, 1), Color.DimGray)
Tabbed Form in Power Apps

Step 12: Add a Button control and Set its Text property to “Submit”. Also, set its OnSelect property to the following formula.

Power Apps Formula

SubmitForm(Form1)
Tabbed Form in Power Apps

Step 13: Set the following formula on the OnSuccess property of the Form control.

Power Apps Formula

NewForm(Form1);Reset(Gallery1)
//By using Reset Gallery, the Gallery comes to its Default position.
Tabbed Form in Power Apps

Step 14: Our tabbed form is ready and put the preview mode by pressing the F5 or clicking on the play icon.