web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

HOW TO DETERMINE IF PENINPUT IS BLANK?

(0) ShareShare
ReportReport
Posted on by 14

I am working on a Power Apps form connected to a SharePoint list. I have a PenInput control used for capturing signatures, and the signatures are saved to a SharePoint image fields (Signature1, 2, 3, 4, 5...) 

here is the Update property of the field: PenInput1.Image.

The form is configured in Edit modes (updating on the existing record).

Here’s how the functionality currently behaves:

In Edit Mode: Users can update the signature, and the new signature overwrites the previous one, which is fine. However, if users leave the PenInput blank (don’t sign), the app still updates the SharePoint field with a blank value, overwriting the previous signature.

This is problematic because it results in the loss of the existing signature if the user doesn’t explicitly sign in Edit mode, because my form has 5 signatures, from 5 people, and they are updating their own section in different times, once one of them update his own signature and submit, the others got updated with blank, which is not ok.

I hope it make sense, could you please provide a solution? thank you very much

 

I have the same question (0)
  • VeGETzX Profile Picture
    364 on at
    HOW TO DETERMINE IF PENINPUT IS BLANK?
    Hi
     
    Try this
     
     
    Add button to the screen that contains PenInput control, and hide it with Visible = false, Assume that its name is 'Button1' and your PenInput is 'PenInput1'
    OnSelect of button
     
    UpdateContext({resetControl: false});
    UpdateContext({resetControl: true});
     
     
    OnVisible of screen that contains PenInput control
    Select(Button1);
    Set(varInitialPenInput, PenInput1.Image);
    Set(varPenInput, varInitialPenInput);
     
    OnSelect of PenInput1
    Set(varPenInput, Self.Image);
     
    Then you can check if PenInput1 was edited (user write something on it) with
    varInitialPenInput = varPenInput

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 977 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 386 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 345

Last 30 days Overall leaderboard