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 / 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)
  • shine_d Profile Picture
    on at

    It really works. Thank you for your solution.😊

  • 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

    Hi, It's on Editform . Thanks

  • 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?

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

Kalathiya 400

#2
WarrenBelz Profile Picture

WarrenBelz 348 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 315 Super User 2025 Season 2

Last 30 days Overall leaderboard