Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

OnSelect of Button, Patch Inputted text from textinput box

(0) ShareShare
ReportReport
Posted on by 909 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 Super User 2025 Season 1 on at
    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
    909 Super User 2024 Season 1 on at
    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 Super User 2025 Season 1 on at
    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
    909 Super User 2024 Season 1 on at
    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 Super User 2025 Season 1 on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard