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.
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!
@madlad absolutely nothing happens even when hovering over the button or attempting to click it.
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!
@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?
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!
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional