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 / Singe line of text con...
Power Apps
Answered

Singe line of text connected to Button

(0) ShareShare
ReportReport
Posted on by

Hi, I have single line of text field connected with a button, however everytime I edit the same entry the field becomes blank:

 

shine_d_0-1686384609299.png

 

Clock On Select - UpdateContext({Timestamp:Text(Now(),"dd/mmm/yyyy hh:mm AM/PM")});Reset(DataCardValue60)

 

DataCardValue60 - Default - Timestamp

 

Thanks for your help!

 

 

 

 

 

 

Categories:
I have the same question (0)
  • fnanfne Profile Picture
    260 on at

    Hey shine_d

     

    Can you give some more info?

     

    Why are you resetting the text field?

     

    Are you in an EditForm or NewForm?

  • shine_d Profile Picture
    on at

    Hi, It's on Editform . Thanks

  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @shine_d,

    Thanks for your detailed case description.
    Please offer me more information.

     

    1. Do you want to display the data of Timestamp which has been submitted use the form?
    2. How do you set your Item property of the edit Form?
    3. Do you want to refresh the Timestamp and submit the current time to the DataSource?

     

    I have tested according to your requirements.

    If you want to display the submitted data and refresh it to the current time.


    Please try:

    1. Set the Item property of edit Form as: 

    Gallery1.Selected

    2. Set the On Select property of Button as: 

    UpdateContext({Timestamp:Text(Now(),"dd/mmm/yyyy hh:mm AM/PM")})

    3. Set the Default property of DataCardValue as:

    If(Timestamp = Blank(), ThisItem.DateField,Timestamp).

    Note that the DateField represents the field you save the date time in your SP list.

     

    Best Regards,
    Kyrie Zhang

  • shine_d Profile Picture
    on at

    It really works. Thank you for your solution.😊

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
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard