Skip to main content

Notifications

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
    VeGETzX 338 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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,161

Leaderboard