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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,133)