cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nchandran
Helper V
Helper V

Need help to show signatures in edit form

Can someone help me on this, i have a edit form that comes as a selected record from a gallery of submitted results.

The edit form has a datacard containing the peninput called Supsignpad and a text box to capture the image, that text box default is set as variable VarSign. The submit button syntax is Set(VarSign,JSON(Supsignpad.Image, includeBinaryData));SubmitForm(EditWDSOps) . Once I submit the editform the image is captured into the text column in sharepoint.

as "data:image/png;base64,iVBORw0..." Now when i got back to the gallery to check on the same record, i cant display the signature as a image file. How can i fix this?

 

1 ACCEPTED SOLUTION

Accepted Solutions

@nchandran ,

You have Enhanced Text - you need Plain Text as mentioned before.

Please also look at my working example posted and see if you are doing anything different.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

15 REPLIES 15
Jeff_Thorpe
Super User
Super User

You should be able to use the value in the text column to display the signature in a Image control. However, I do believe you will have to change the "data:image" to "data:image" to get it to display in the image control. 



--------------------------------------------------------------------------------
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.

Jeff, it's the same "data:image" to "data:image" ?? am i going wrong here.

Jeff_Thorpe
Super User
Super User

It looks like forum post is changing the example when I save it. I took a screenshot of what I was trying to convey.

 

2020-12-24_08h20_53.png



--------------------------------------------------------------------------------
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.

How do i change this? should i change this syntax -> Set(VarSign,JSON(Supsignpad.Image, includeBinaryData)??

Hi @nchandran ,

I will give you another option which I use - it is is this blog, but I will explain it below.
Put this in the Update of the Text Box linked to your Multi-line text field.

Substitute(
   JSON(
      Supsignpad.Image,
      JSONFormat.IncludeBinaryData
   ),
   """",
   ""
)

You will not need the Variable varSign in this case, although if you want to keep it, do this in your code (then leave the Update as it is)

Set(
   VarSign, 
   Substitute(
      JSON(
         Supsignpad.Image,
         JSONFormat.IncludeBinaryData
      ),
      """",
      ""
  )
)

If you than put an Image Control in a custom card on the Form, it should display the signature with the Image property

ThisItem.YourTextFieldName

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz  thank you for supporting us ,

 

i pasted below to my update field of signature field but its giving me error

 

jaleefpk_0-1609219628877.png

basically this is my edit form , i have field called empllyee signature where i added pen input , now i need to capture the value as binary , and in my display form below , i want it to show there 

 

jaleefpk_1-1609219791701.png

 

@jaleefpk ,

I assume you are the same person as the poster?

I have now tested this (although I thought I had it working before) and indeed it give a rather strange error, however no matter. This however works fine - on the Save put

Set(
   varSign, 
   Substitute(
      JSON(
         Supsignpad.Image,
         JSONFormat.IncludeBinaryData
      ),
      """",
      ""
   )
);
SubmitForm(YourFormName)

and on the Card Update, leave at

varSign

 

 I did a small test below

Pento64.gif

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @nchandran  & @jaleefpk 

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi Warren,

 

upon testing with your advise having error , it fails to submit the data and i get the error on the signature data card. See below screenshots.

varsign on textfield.jpgsubmit button.jpgsig card update as.jpgSig card error.jpg

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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