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 / Textinput with a save ...
Power Apps
Answered

Textinput with a save button that saves the inout calue into a text label

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

So I got this inputbox I want my colleges to be able to input a timestamp like 12:14 and then click "Save", after that I would like it to save that input into a textlabel. See picture below. I'm very new to powerapps and havent been able to solve this.

 

Skärmklipp.PNG

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Insert another Button and OnSelect put: Set(MyTime,Now())

     

    In your TextBox Default put: Text(MyTime,"hh:mm:ss")

     

    Then on the Save button, Patch to your Datasource as follows

    Patch(YourTable,Defaults(YourTable),{TimeColumn:Name})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I want my colleges to be able to insert their own timestamp, not "set" the current time.

     

    Also, in this formula:

    Patch(YourTable,Defaults(YourTable),{TimeColumn:Name})

    What do I insert under "Name" ?

     

    And the "TimeColumn" do I have to make a new column in the sharepoint list with just a textfield?

     

    I really appreciate your help, thanks! 

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Can you explain "I want my colleges to be able to insert their own timestamp, not "set" the current time."

    Do you want them to Manually type the time?

    Because with what i did, when the click they the button, it will capture the time into the textbox. If you want them to manually enter the time, then you only need the Patch.

     

    Patch(YourTable,Defaults(YourTable),{TimeColumn:TextBox1.Text})

     

    And the "TimeColumn" do I have to make a new column in the sharepoint list with just a textfield?

     

    The column name TimeColumn is just a sample i gave. Replace TimeColumn with where you want to save it to in your Table

    Also ensure you use the actual name of your table. Also change TextBox1.Text to the name of the actual textbox on the screen

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, I tried this but it wont work. I got no error on the formula, but I get an error when its trying to do the patch, its warning about a validation on another field I got? I'm trying to embed this into an gallery with several items. I want to be able to change just that field on selected gallery item.

     

    Skärmklipp.PNG

  • eka24 Profile Picture
    20,925 on at

    Can you show the error.

    Also is your picture you have shown in a Gallery or not.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Its a picture of my gallery.

     

    This is the error I get (Its in swedish):

    errorAvtalsområde.PNG

    Is says:

     

    Information

     

    Message

    Avtalsomr_x00e5_de: Field Avtalsomr_x00e5_de is required.

     

    Location

    Button2_1

    .OnSelect

     

  • eka24 Profile Picture
    20,925 on at

    Then go to SharePoint list and make the uncheck the mandatory Field. This will make the field not required for you to Patch.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    But this is another field, its not the the field i'm trying to patch? The field i'm trying to patch it "KontaktaTekniker2" and that field is not mandatory.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello again,

     

    This is my setup:

     

    • KontaktaTekniker2 is the sharepoint list column I created, its a Single row of text column.
    • Timestamp is an TextInput field in PowerApps i've created.
    • Button2_1 have this formula now, I got no error with this but what I input into the Timestamp wont show up in the column "KontaktaTekniker2".
    Patch('Logg';LookUp('Logg';ID=Blank());{'KontaktaTekniker2':Timestamp})

     

    SparaTidpunktKontaktaTekniker.png

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard