cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kwehler
Regular Visitor

Pen Input on a multi page form

I am creating a multi page Canvas app utilizing 1 sharepoint list broken up into multiple forms throughout the app.

 

These are connected with a variable and will be submitted using the patch function:

 

Patch('Performance Review',Defaults('Performance Review'),'Form 1'.Updates,'Form 2'.Updates,'Form 3'.Updates,'Form 4'.Updates,'Form 5'.Updates)

 

I would like to add a pen input so that the person completing the form can sign and date.

 

To do this, the current setup I have is a multi line field in my sharepoint list. The field was entered into my form, text box deleted, pen input control added in its place, updated the input control to Peninput1. I also intend on using Set(sigblob,JSON(Peninput1.Image,IncludeBinaryData)) on a submit button and adding that variable into the data card holding the pen input in the update control.

 

Ultimately, when submitting, I would like to see the form field information and the binary data of the pen input to submit into the sharepoint list as 1 submission.

 

I have done this multiple times on single page canvas apps by using: 

 

i.e.

Set(variable,JSON(peninputname.Image,IncludeBinaryData));SubmitForm('Formname')

 

This has worked flawlessly. However, if I try to follow the same format with the patch command necessary for the multi page canvas app:

 

i.e. 

Set(sigblob,JSON(Peninput1.Image,IncludeBinaryData));Patch('Performance Review',Defaults('Performance Review'),'Form 1'.Updates,'Form 2'.Updates,'Form 3'.Updates,'Form 4'.Updates,'Form 5'.Updates)

 

the form data is submitting to the sharepoint list, and the binary data from the json function is not, it is just blank in that field.

 

What am I doing wrong? Is there a different way I should be writing this?

 

Additional Note: The submit button with the final code, (json and patch) is on the same page / form as the pen input

 

1 REPLY 1
RandyHayes
Super User
Super User

@Kwehler 

I would first recommend that you not use a Patch function to submit a form.  This completely wastes all of the functionality of the form - which is one of the biggest benefits of using a form.

To split your forms properly and not lose the functionality, take a look over this video on doing it properly.

 

That said, your actual issue sounds like your Update property of the data card for the column that gets the image.  It should be the variable that you are setting the JSON to.  I would check that and try to use a proper form split so that you can use the form as it was intended and stick with the SubmitForm function.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,110)