- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 11:12 AM
Hello, everyone!
I'm with a UI Builder project but I'm still trying to learn (my focus before was Service Portal).
So, I created a simple Input and a Button:
What I need to do is, when user click on "Import" button, must get the value inserted on input field and pass to a Script Include.
I know how to do it using Service Portal but I have no idea how it works on UI Builder.
Can someone help me please?
#uibuilder
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 11:22 AM - edited 12-16-2022 11:28 AM
Hi Gabriella,
do the following:
- Create a Client state parameter to store the value of the input field
- Assign "Update Client state parameter" event to the input field
- Create a Data Broker and define input parameter to call your script include
see: https://www.servicenow.com/community/developer-articles/ui-builder-get-and-update-data-by-data-broke... - Define the data broker as a data resource on your page
- Assign the Data Resource call to the Import Button and assign client state parameter to the parameter of the data resource
I hope that helps you.
I will always try to give a meaningful and valid answer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 11:22 AM - edited 12-16-2022 11:28 AM
Hi Gabriella,
do the following:
- Create a Client state parameter to store the value of the input field
- Assign "Update Client state parameter" event to the input field
- Create a Data Broker and define input parameter to call your script include
see: https://www.servicenow.com/community/developer-articles/ui-builder-get-and-update-data-by-data-broke... - Define the data broker as a data resource on your page
- Assign the Data Resource call to the Import Button and assign client state parameter to the parameter of the data resource
I hope that helps you.
I will always try to give a meaningful and valid answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:22 AM
can you make a video for this whole process.....it would be of great help.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 11:38 AM
Thank you!! It helped!