web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using tabs with requir...
Power Apps
Answered

Using tabs with required fields

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm quite new to PowerApps and trying to create profile registration and modification app that is connected to a SharePoint list. I created different tabs by using 3 different buttons (see below). On every page, I have the same footer with the names of the tabs, an edit, save and delete button. One of the fields (Years of Experience), which is located under the "work-related information" tab is compulsory, unfortunately, I cannot ensure the save button to patch the data to SharePoint because it keeps telling me Years of Experience, which does not appear in Personal Information and Profile tabs, is required. 

 

thatakke_0-1630403089897.png

 

My current save button patches information entered in each individual tab to SharePoint with the below formula (obviously, the field names and navigation to next screen changes from tab to tab).

 

Patch(
 'MySPlist',
 Defaults('MySPlist'),
 { 
 'SPColumn1':Label8,
 'SPColumn2':Label9,
 'SPColumn3':Label10,
 'SPColumn4':DataCardValue5.Selected,
 'SPColumn5':Label11,
 'SPColumn6':DataCardValue8.SelectedItems,
 'SPColumn7':DataCardValue10.SelectedDate 
 }
);
Navigate(WorkRelated)

 

 

As I mentioned because my compulsory field is located only in 1 tab, so I keep getting an error. What is the best practice or the recommended method to submit the data to SharePoint? 

Thanks

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    If it is compulsory, you need to fill it. If you change it after you create the item in a flow or something, it does not matter how you create it, you only have to insert some data instead of leaving it blank

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks,

     

    But I don't want to put that field (years of experience) to an unrelated tab, and I would like people to be able to save data entered in every tab. So, there are no ways?

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    There is a way... Put it in another tab and, in the last tab do the patch for all...

     

    Imagine:

     

    Patch(
     'MySPlist1',
     Defaults('MySPlist1'),
     { 
     'SPColumn1':Label8,
     'SPColumn2':Label9,
     'SPColumn3':Label10,
     'SPColumn4':DataCardValue5.Selected,
     'SPColumn5':Label11,
     'SPColumn6':DataCardValue8.SelectedItems,
     'SPColumn7':DataCardValue10.SelectedDate 
     }
    );
    
    Patch(
     'MySPlist2',
     Defaults('MySPlist2'),
     { 
     'SPColumn1':Label8,
     'SPColumn2':Label9,
     'SPColumn3':Label10,
     'SPColumn4':DataCardValue5.Selected,
     'SPColumn5':Label11,
     'SPColumn6':DataCardValue8.SelectedItems,
     'SPColumn7':DataCardValue10.SelectedDate 
     }
    );
    
    Patch(
     'MySPlist3',
     Defaults('MySPlist3'),
     { 
     'SPColumn1':Label8,
     'SPColumn2':Label9,
     'SPColumn3':Label10,
     'SPColumn4':DataCardValue5.Selected,
     'SPColumn5':Label11,
     'SPColumn6':DataCardValue8.SelectedItems,
     'SPColumn7':DataCardValue10.SelectedDate 
     }
    );

     

    Basically, do every patch in the last tab. That way, you can post that textbox in another field and give the patch in the end

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard