Skip to main content

Notifications

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

 

  • 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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1