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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HOW TO DETERMINE IF PE...
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

 

Categories:
I have the same question (0)
  • VeGETzX Profile Picture
    367 on at
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard