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 / OnSelect of Button, Pa...
Power Apps
Answered

OnSelect of Button, Patch Inputted text from textinput box

(0) ShareShare
ReportReport
Posted on by 920 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

 

Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    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!

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

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

  • madlad Profile Picture
    2,637 Moderator on at

    @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
    920 Super User 2024 Season 1 on at

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

  • madlad Profile Picture
    2,637 Moderator on at

    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!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard