Comments on: Re-using Choice List Options in Fields and Variables https://servicenowguru.com/system-definition/reusing-choice-list-options/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 21:18:09 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Kevin Clark https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7195 Thu, 03 Dec 2015 02:24:47 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7195 Hi Mark,

Thanks for the reply. I’ve recreated my new Choice Field for Country Code selecting “string” as the type and then selecting the choice values rather than selecting choice upfront, and that seems to have resolved my problem – I can now see the the Location.Country Code field when I dot-walk from User to Location for my business rule. Not 100% convinced that selecting a different type was the thing that resolved the issue, but happy it’s working now!

Thanks!
Kevin

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7194 Wed, 02 Dec 2015 12:36:37 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7194 In reply to Kevin Clark.

That depends on whether or not the country code value has actually been saved to a record. If it’s saved to the record then it should be have as expected. If you’re somehow interrogating those values just in the choice list then you may need to go to the original source to get to them. I haven’t encountered that before.

]]>
By: Kevin Clark https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7193 Wed, 02 Dec 2015 07:46:57 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7193 Hi Mark,

Great tip! I’ve used it to duplicate “country code” values from my user table into my location table (so that they are always in sync). However, when I try to create a business rule which references the related field on the Location table, I’m finding that my new Country Code field isn’t visible… is this expected behaviour here (because the choice list is actually referencing sys_user)?

Regards,
Kevin

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7192 Tue, 07 Aug 2012 11:41:31 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7192 In reply to Brendan Casey.

@Brendan, unfortunately there isn’t at this time. Catalog variables in general don’t support the same types of attributes for suggestion, autocomplete, etc. as standard fields do.

]]>
By: Brendan Casey https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7191 Tue, 07 Aug 2012 11:03:28 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7191 Is there a way to use the ‘suggestions’ style choice list inherited from the referenced field in a Catalog variable of text line type?

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7190 Mon, 07 Nov 2011 19:57:54 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7190 In reply to Cary Trusty.

Unfortunately, there isn’t a way to filter the results currently. This actually seems like a bug to me though. Inactive choices should never show up, regardless of where you’re pulling them in from. One way you might address this would be to set up a ‘before query’ business rule. You could easily filter out invalid choices for non-admins. The other method would be to set up a regular choice list and dynamically populate the choices…or just set up the choices and maintain them in 2 places.

]]>
By: Cary Trusty https://servicenowguru.com/system-definition/reusing-choice-list-options/#comment-7189 Mon, 07 Nov 2011 17:52:01 +0000 https://servicenowguru.wpengine.com/?p=1792#comment-7189 I have used this a few times but this is the first time I’ve noticed (or ran into this issue). I’m using this select box on a wizard that is collecting information for a record producer at the end of the wizard.

On the actual Incident record, there are fewer choices than there are on the wizard. The reason for this is that the Choice field/list pulls in all variables (no conditions). On the Incident form, some choices are set to inactive=true. The wizard doesn’t allow for a reference qual on the Selectbox option. Is there a way to use the attributes fields to filter where inactive=false?

]]>