Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

UI Builder client script cannot read the textarea field

ozgurD
Tera Contributor

Hi,

I have a textarea component (id: textarea_1):

ozgurD_0-1744710207975.png

 

in my client script I have following code: 

const textareaValue = api.state.textarea_1;
 
But if I log the variable I get a undefined value although I have inserted a text. How can I read the input of the textarea in my client script? 
0 REPLIES 0