cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
azeesdinu
Helper II
Helper II

Tabbed Form - Dynamic Selected tab

Hi All,

I'm using custom list power apps and having single form. I have two buttons ( Named PLM and Non PLM )in my form for showing like tabbed view.

By Default in new item screen, I want select the PLM tab. I have formula On Select of button event like Set(varFormTab, btnBasicTab.Text)  and Set(varFormTab, btnBasicTab1.Text). Please find the attached images. 

 

Also I have another string feild (PLMorNonPLM) to storing the selected form is whether PLM or Non PLM. Having formula like on Text like if(varFormTab=btnBasicTab.Text, "PLM" , "Non PLM"), So when I submit the form this string field will capture the variable value. 

SO when I edit the form based on this PLMorNonPLM value I need to enable the tab. Please let me know how to enable the tab based on. 

 

I tried formScreen onVisible event like 

 

If(IsBlank(PLMorNonPLM), Set(varFormTab,"PLM"),Set(varFormTab,PLMorNonPLM.Text) but PLMorNonPLM.Text is always null in OnVisible event. 

 

 

                                                                                                                                  

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @azeesdinu ,

Do you want to display different forms according to your cliking on which tab?

I‘ve made a similar test for your reference:

1)insert two forms, two buttons

2)Set button1's OnSelect: Set(test,"a")

Set button2's OnSelect: Set(test,"b")

Set the screen's OnVisible: Set(test,"a")

3)Set form1's Visible: If(test="a",true,false)

Set form2's Visible: If(test="b",true,false)

 

Then, if you click on button1, form1 will display, click on button2, form2 will display.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yutliu-msft
Community Support
Community Support

Hi @azeesdinu ,

Do you want to display different forms according to your cliking on which tab?

I‘ve made a similar test for your reference:

1)insert two forms, two buttons

2)Set button1's OnSelect: Set(test,"a")

Set button2's OnSelect: Set(test,"b")

Set the screen's OnVisible: Set(test,"a")

3)Set form1's Visible: If(test="a",true,false)

Set form2's Visible: If(test="b",true,false)

 

Then, if you click on button1, form1 will display, click on button2, form2 will display.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Hi @azeesdinu how are you progressing with this? Was the above reply helpful?

 

@Anonymous 

Swede1171
Frequent Visitor

I am using this same setup 2 buttons, 2 forms, I have gotten it to a point where i can view each form based on the selected button. However regardless of which form I select I cannot ever save. I don't receive an error and there are no required fields in either the list settings or the powerapps advanced settings. 

 

Does anyone have any thoughts?

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.

Top Solution Authors
Top Kudoed Authors
Users online (52,097)