Default value on Yes/No variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 01:12 AM
How can we set No on Yes/No variable on variable form page. Since i am using UI policies to control the visibility of the field. I don't want to use client script for this.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2020 02:03 AM
Just checking if this answered or not?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2020 01:18 AM
Hi,
You can just use the variable configuration to achieve this. Put 'No' in the default value in the variable.
Also, if you don't want 'None' in the dropdown, you can configure using the checkbox 'Include None' accordingly.
Regards
Pratyusha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2020 02:11 AM
Hi
you can write onload client script on form.
example
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.isNewRecord()) {
g_form.setValue("fieldName",false);
} }
If it help mark helpful or correct
Thanks and regards
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 12:46 PM
Was having the same issue and had to switch the "Clear the variable value" on my Catalog UI Policy Action to false (when making it invisible). Then had to check "Run scripts" and on "Execute if true" (invisible condition satisfied) added:
g_form.setValue('yes_no_field', 'No', 'No');