UIB | Button Clicked - setValue to field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 12:45 PM
Hi,
I'm wondering if is possible when I clicked the button on the workspace and have the Category field in the form set to string "ABC"?
Here is the configuration
The link will navigate to the form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 01:07 PM
You can create a client script with the field/value you want to set. Then you can call that client script in your Event when the button is clicked:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 01:46 PM
@Michael Fry1 , thank you for your response. I followed your instruction but the field did not update the value that I specified.
function handler({
api,
event,
helpers,
imports
}) {
api.data.glide_form_1.setValue({
fieldName: 'category',
value: 'ABC'
});
api.data.glide_form_1.save();
}
Is there any setting I need to set in the glideform?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 01:54 PM
You value is in capital letters! You need to change the script and the value to lower case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 04:56 AM - edited 02-13-2023 05:11 AM
unfortunately is not working.
This is how I setup the button
Link to destination - External URL
https://instance.service-now.com/x_964096_my_test_1_control_master.do?sys-id=-1
Execute Client Script
Category field is a string type and not a choice type