cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Prevent submission of Sharepoint custom form

Hi,

 

I've been working on a custom Sharepoint form for my company and I'm stuck. They want to add a checkbox with the usual "I've read and accept the terms" and the form can't be submitted if that checkbox isn't checked.

 

The problem is, because it's a custom Sharepoint form and not a PowerApps app, the Save and Cancel buttons are not part of the Powerapp, I don't know if I'm explaining this right. I've added a screenshot to help understand.

 

I've tried adding a validation condition in Sharepoint, and that does prevent the user from submitting, but the error message shown is something like "There was an error with the source data ID{981273918273189237}" and that doesn't look good.

 

If anyone has some ideas, I'd love to hear them, thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Prevent submission of Sharepoint custom form

You can go to the SharePointIntegration control and in the Advance property you can add logic to the OnSave event to prevent it from being saved it the box is checked. 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Prevent submission of Sharepoint custom form

You can go to the SharePointIntegration control and in the Advance property you can add logic to the OnSave event to prevent it from being saved it the box is checked. 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Highlighted
Helper I
Helper I

Re: Prevent submission of Sharepoint custom form

You are absolutely right Jeff, I didn't even know that was an option.

Thank you! 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,425)