Set default value of Request Catalog Yes/No Variable

ddzhang
Tera Contributor

I'm trying to set the default value of a Yes/No variable field in my RITM to be "Yes", but for some reason it will always default to "No." It will successfully default to "Yes" in the request form, but not in the RITM itself.

 

I've tried setting the default value to "Yes", "yes", and "true".

 

ddzhang_0-1753711603801.png

 

ddzhang_1-1753711647601.png

 

1 ACCEPTED SOLUTION

GlideFather
Tera Patron

Hi @ddzhang 

 

please attach your screenshot using the clip icon, don't copy paste them here, there is ongoing Coommunity moderation of content making it invisible.

I have tried in my end - when I just created the variable, the Yes was a default value on default:

KamilT_0-1753735901737.png

 

When I wrote "No" to default value, it was that option populated on default:

KamilT_1-1753735931202.png

 

Alternatively, you can check the "Include none" option which will add a --None-- as default which is my personal favourite, the end user then must select and cannot skip (as long as it is set mandatory):

KamilT_2-1753736025988.png

 

If you have empty or "Yes" in the default value and the Yes is not the default value, then check the choices of that variable.

 

It might not be the Yes/No type but the choice instead and choice values Yes or No, in that case check the related tab below of that variable. Review the values, check the name (not label) and make this the default value. If it is a non-Yes/No then these values can be anything 0 or 1 (ev 1 or 2)..... 

Let me know if that helped you.

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

7 REPLIES 7

Brad Bowman
Kilo Patron
Kilo Patron

I can't see your attachments.  If you set the value to 'Yes' on the request form, does it remain 'Yes' when the RITM is displayed? Are you including None, so if you don't select anything on the request form, what value is displayed on the request form, then the RITM?  The correct value to use is "Yes".  Do you have any Catalog Client Scripts or Catalog UI Policies that are affecting this variable at the RITM level?

I'm currently not including the "None" option, and I've checked my Catalog Client Scripts and Catalog UI Policies. If I don't select anything, the default value being displayed when opening a new RITM is "No".
I'm not too sure what you mean by setting the value to 'Yes' on the request form, for my use case I will only be entering values in the RITM.

And what is that variable type: is it yes/no or choice?

 

please attach your screenshots using clip icon, they’re and will not be displayed and they could help to understand it better 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


ddzhang
Tera Contributor