Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Submit SharePoint integrated list with PowerApps

(1) ShareShare
ReportReport
Posted on by 181
Hi all,
 
I have a SharePoint list integrated with PowerApps. I've made some fields mandatory and built a custom save button. Additionally, I've added a success screen that users are taken to when they click on the submit button. However, the save button doesn't check if all the mandatory fields are filled before saving and navigating to the success screen. I need assistance in implementing a check to ensure all compulsory fields are filled before saving and navigating to the success screen.
Below is the code for the custom save button.
 
Categories:
  • MK-07081211-0 Profile Picture
    12 on at
    Submit SharePoint integrated list with PowerApps
    How about only making the Save button visible if mandatory field have been filled
  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Submit SharePoint integrated list with PowerApps
    Hi Harris021 
    Try
    If(
       TravellersDetails.Valid && TripDetail.Valid,
       Patch(
          'Travel Booking Request Form',
          Defaults('Travel Booking Request Form'), 
          TravellersDetails.Updates, 
          TripDetail.Updates
       ); 
       Navigate(SuccessScreen);
       Refresh('Travel Booking Request Form’),
       Notify("fill in fields . . .)
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • Suggested answer
    DBO_DV Profile Picture
    4,530 Super User 2025 Season 1 on at
    Submit SharePoint integrated list with PowerApps
    Hey Harris, 
     
    You could do it like this: 
    If( !IsBlank(Control.text) && !IsBlank(Control.text) &&...., 
        Patch(
            'Travel Booking Request Form', 
            Defaults('Travel Booking Request Form'),
            TravellersDetails.Updates,
            TripDetail.Updates
        );
        Navigate(SuccessScreen);
        Refresh('Travel Booking Request Form'),
        Notify(
            "Please fill out the mandatory information",
            NotificationType.Error
        )
    )
     
    Let me know if it helped you out. 
     
    If this solved your problem please accept this answer as solution to that others can find it aswell. 
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard