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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with dual OnSelec...
Power Apps
Answered

Help with dual OnSelect functions? Would like to update date/time of data lable when PenInput is accepted

(0) ShareShare
ReportReport
Posted on by 30

Hello,

 

I am trying to incorporate peninput for signatures with my app/sharepoint list. I am following this tutorial:
https://matthewdevaney.com/capture-a-signature-with-power-apps-pen-input-and-save-to-sharepoint/

 

One of the things not mentioned that I would like to do is updating the "Date/Time" every time a new peninput is accepted.

 

Currently my "accept" labels have OnSelect = > Set(varShowSignature, false) to get the signature off screen.


Is there anyway to add to this function to also make my "Date" box, "Label13" update with the Text( Now() function?

I tried something like just adding it after the first function with OnSelect = > Set(varShowSignature, false);;Set(Label13,Text( Now()) but no luck.

I am not very good at this. Any tips?

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    HI @SamR ,

    You need to set a Variable to Now() and have the Default of the text box set to this Variable. You then Reset the Text box and it will assume the new value. 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @SamR ,

    The property of an object can't be set directly during runtime.  Properties can only be defined at 'buildtime' or when you're editing your app.  You can however set them indirectly using a variable during runtime.

    The idea is to define the property as a variable, and then "set" or update the context of the variable at 'runtime', which is while the app is running.

     

    Variables can be app global, screen local, or expression local.  If in doubt as to which scope to use, screen local is usually safest.

    To set an app global you use Set().

    To set a screen local variable, use UpdateContext().

     

    To stick with your example though, you can define Label13's Text: property as varWhatever.

    You can then use;

    Set(varShowSignature, false);;Set(varWhatever, Now())

    on your "accept" label OnSelect: property.

     

    Hope this helps,

    RT

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard