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

Community site session details

Session Id : JSILfwSOwX9rHrSC7ECQT3
Power Apps - Building Power Apps
Answered

OnSelect of Button, Patch Inputted text from textinput box

Like (0) ShareShare
ReportReport
Posted on 29 Aug 2023 23:58:17 by 911 Super User 2024 Season 1

Hi,

 

 

I am trying to use patch to submit the inputted text from my textbox "comment_box" .

 

Patch('Data Source', ThisItem, {FieldComment: {Value: comment_box }})

 

I am getting the error the type of argument FieldComment does not match expected type 'Text'.found type 'Record'.

 

I confirmed FieldComment is the SP list column name in list settings..

 

Is my value : comment_box inncorrect? that seems off to me.

 

wonka1234_0-1693353465019.png

 

  • madlad Profile Picture
    2,637 Moderator on 30 Aug 2023 at 00:21:27
    Re: OnSelect of Button, Patch Inputted text from textinput box

    The only things off the top of my head I can think of that would cause this behavior are either a clear control in front of the button, such as a rectangle with color RGBA(0,0,0,0), or if the buttons Display mode is not set to Edit. Could you check that these aren't the case?

     

    Let me know!

  • wonka1234 Profile Picture
    911 Super User 2024 Season 1 on 30 Aug 2023 at 00:15:33
    Re: OnSelect of Button, Patch Inputted text from textinput box

    @madlad  absolutely nothing happens even when hovering over the button or attempting to click it.

  • madlad Profile Picture
    2,637 Moderator on 30 Aug 2023 at 00:11:39
    Re: OnSelect of Button, Patch Inputted text from textinput box

    @wonka1234 

    When you say you can't click the button, what do you mean?

    For example, does it appear to click and have no effect, or does absolutely nothing happen even when hovering on the button?

     

    Let me know!

  • wonka1234 Profile Picture
    911 Super User 2024 Season 1 on 30 Aug 2023 at 00:08:25
    Re: OnSelect of Button, Patch Inputted text from textinput box

    @madlad  thanks! working now! however i cant actually click the button? I only have what you have above in my onselect. am I missing something here? 

  • Verified answer
    madlad Profile Picture
    2,637 Moderator on 30 Aug 2023 at 00:04:41
    Re: OnSelect of Button, Patch Inputted text from textinput box

    Hi!

     

    It looks like this is expecting a text value, but because of {Value : comment_box} it's reading a record.

    I think you'll want to try something similar to:

     

    Patch('Data Source', ThisItem, {FieldComment: comment_box.text })

     

    which gets the text value from the comment box.

     

    Hope this helps!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2