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 / Patching text input fr...
Power Apps
Answered

Patching text input from a button

(0) ShareShare
ReportReport
Posted on by 34

Hello, 

I'm building a time recording app consisting of:

 

  • Start button btnStart
  • End button btnEnd
  • Project dropdown drpSelectProject
  • Notes txtNotes

Currently its updating a SharePoint List using:

 

btnStart

Set (varNewItem, Patch (TimeLogDefaults (TimeLog),{Title: User().EmailProject: drpSelectProject.SelectedWhenStarted:Now(), SessionActive:true}));
 
btnEnd
Set (varNewItem, Patch (TimeLog, LookUp (TimeLogvarNewItem.ID=ID),{WhenFinished:Now(), NumberOfMinutesUsed:DateDiff (varNewItem.WhenStarted,Now(), TimeUnit.Minutes), SessionActive: false}));
 
How do I configure the above patches to include the text input component please and what is best practice of when/how to delete any text entered? I was thinking either after selecting the End button or when closing the form.

Thanks
Categories:
I have the same question (0)
  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @MrSheen 

     

    To patch a text input to a column, it would look like this

    Patch('Data Source', Defaults('Data Source'), {'Column Name': TextInput1.Text})

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

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 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard