I did some messing around and the best workaround I have come up with is to see if the image URL has changed. Hopefully, someone has something better. Here is what I did:
1. Set the Screen OnVisible property to:
UpdateContext({BlankImage: Signature.Image})2. Set the DisplayMode of my consent button to
If(BlankImage = Signature.Image,DisplayMode.Disabled,DisplayMode.Edit)
3. Set the OnSelect of my consent button to
Office365.SendEmail("shane.young@boldzebras.com","My Consent Form" , "Body Text",{Attachments:Table({Name:"peninput.jpg",ContentBytes:PenInput1.Image , '@odata.type':""})});UpdateContext({BlankImage: Signature.Image})I reset the variable to disable the button again so I can collect a new sig. Will add code to clear the other fields also.
If you didn't catch it earlier Signature is what I renamed my PenInput field to.
If anyone has a better solution I am all ears. I don't love this but I think it works.
Thanks
Shane