cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User
Super User

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
Super User
Super User

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

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

Thank you! 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,573)