cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
U_Idigoras
Level: Powered On

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

U_Idigoras
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,520)