A ServiceNow catalog item variable set groups questions that several catalog items need. Create the set, define its variables once, and associate it with the catalog items that need those questions. Changes to shared definitions reach associated items, so test the attached forms together before releasing a shared change.
Plan a catalog item variable set in ServiceNow
Start by comparing the information needed for two catalog items. For example, a laptop request and a monitor request might both need delivery details, while the laptop needs its own configuration questions. Keep the common delivery questions together and leave product-specific questions on their respective items.
Reuse works when the questions mean the same thing. Two fields labeled “Location” may refer to different things: the employee’s office and the address where equipment should arrive. Agree on the meaning before combining them. Write down who supplies the answer, how fulfillment uses it, and which choices are valid.
Choose Single-Row Variable Set for a group describing one entity. Choose Multi-Row Variable Set when the requester needs repeated rows describing several entities. A delivery-details group fits the first pattern; a list of separate equipment configurations may fit the second. The multi-row variable set guide covers that design in more depth.
Make a short inventory of intended consuming items before building. Include their local variables and the scripts or policies that depend on them. This gives the shared set a defined purpose and provides the starting list for testing later changes.
Create the shared set and its variables
Administrators and catalog administrators define reusable variable sets. Catalog managers and catalog editors can attach existing sets to their assigned items, but cannot create the sets. Keep those responsibilities distinct when arranging authoring access. Check the behavior on your instance and release before applying shared changes.
- Create a variable set for the common questions, choosing the single-row or multi-row approach planned for the request.
- Create the constituent variables in the Variable Set form. Keep each question focused on the information the consuming items actually share.
- Define any catalog client scripts and UI policies needed for the set’s variables. Review their intended effects alongside the question definitions.
- Associate the completed set with the catalog items that need it, then check the resulting forms before making the shared definition available to requesters.
For each variable, select Type, write Question, and review Name. Give the variable an Order value that puts it in a sensible sequence. Lower values place variables above higher values. Set Active and decide whether Mandatory, Read only, or Hidden applies. Mandatory describes the initial page-load behavior; client APIs can change that state later.
Keep a small definition sheet with the question, internal name, expected answer, and consumer. It helps reviewers spot a variable whose meaning has drifted even when its label still looks familiar. The ServiceNow variable table guide provides related background for maintainers examining variable records.
Finish choices, help, and access before attachment
For a variable that presents fixed choices, an admin opens its definition and uses New in the Question Choices related list. Text is the label presented to the requester; Value is the stored answer. Treat the stored value as part of the design contract with the people maintaining fulfillment logic.
For example, a delivery-method question might present “Office collection” while storing an agreed internal value. Review both fields before saving with Submit. Repeat for the remaining choices and check their ordering. A readable label does not prove that a downstream condition receives the value it expects.
An admin can also configure help on the Variable form. In Annotation, select Show help, then complete Help tag and Help text. Use help to explain an ambiguous answer, such as whether a location means the collection office or delivery destination. Help text does not support HTML tags. Put guidance on the individual questions; variable-set-level help text and instructions are unavailable.
Help display also depends on where the question is used. In Workspace and the Catalog Item UIB component, Instructions takes precedence when both Instructions and Help text contain content. If a reviewer sees instructions instead of the expected help, inspect both fields before rewriting the question. That difference can explain why two viewing surfaces show different guidance.
For supported variables, Always Expanded opens the guidance when the catalog item loads. It appears after Show help is selected. The item’s Expand help for all questions setting takes precedence over the variable’s expansion setting. Check that item setting when shared questions open differently between consuming items; changing the individual variable may not explain the result.
Review access at both levels. Access validation checks the variable set before the variable. A restriction on the set can block access even when the variable’s settings would permit it. For an individual variable, Read roles controls viewing, Create roles controls entering values before requesting, and Write roles controls editing in the variable editor after requesting.
Leaving the role fields empty has consequences: users who can access the catalog item can perform the corresponding read, create, or write action regardless of role. Where roles are specified, a user whose roles do not match cannot set the variable value through scripting either. Include both an allowed account and an account without the required role in the access checks.
Test with the intended requester and fulfiller accounts. An administrator’s view is insufficient evidence that those users can supply or inspect the answers they need.
Attach one definition to several catalog items
Associate the shared set with the first catalog item, then add that same set to the second item. For a catalog manager or catalog editor, confirm that both items are assigned to that author before arranging the attachments.
Keep the distinction between attachment and duplication clear during review. The goal is for both items to use one shared definition. Creating another similarly named set gives maintainers a separate definition to manage and makes later divergence harder to notice.
Check the combined form after attachment. Shared delivery questions should appear in a logical place alongside the item’s local questions. Review the order of the variables and how the shared group fits the surrounding questions. Test both a blank form and one with entered answers, since defaults can conceal missing guidance.
Record which item owns each remaining local question. If the catalog authoring process also needs attention, use the Catalog Builder guide alongside this work.
For assistance planning shared catalog definitions, see ServiceNow implementation.
Test shared changes across the attached items
A modification to the shared set is reflected across associated catalog items. Before changing a required field, choice, or default, identify the consumers and agree on their expected behavior. A change that suits a laptop request can still make a monitor request confusing.
Run a compact acceptance check for each attached item:
- Confirm the questions appear once, in the intended sequence, with readable help and choices.
- Submit representative answers and inspect the resulting requested item with the intended fulfillment account.
- Exercise conditions that change visibility, mandatory state, or values.
- Review existing requested items when changing shared choices, rather than checking new submissions alone.
Choice modifications can affect existing requested items. If a selected choice is deleted, its value persists in the requested item. Plan how reviewers will interpret those older answers before removing or renaming choices.
For state changes that are difficult to explain, admin or catalog_admin can enable JavaScript Log and Field Watcher through the Developer tab in System Settings. Open the item through Maintain Items, click Try it, then right-click a variable label and select Watch Variable.
The Variable Watcher can show activity from catalog client scripts, data lookups, and catalog UI policies. Watch the field while reproducing the issue, then compare the result between consuming items. For a deeper investigation, follow the catalog scripting and UI policy debugging guide.
Use the watcher’s filters to narrow the investigation. All combines the activity, while Catalog Client Script, Data lookup, and Catalog UI Policy let you focus on one source of changes. The watcher handles one variable at a time. To compare two questions, watch the first, reproduce the problem, then select Watch Variable on the second question and repeat the same inputs. Use Unwatch Variable when finished and Clear log before a fresh reproduction so older activity does not confuse the comparison.
Five common questions about shared catalog definitions
Where can I inspect variables belonging to an attached set?
Open the variable set record. Its individual variables do not appear in the catalog item’s Variables related list. Record this location in your maintenance notes so another administrator can find the shared definition without creating replacement local questions.
Can the same set support an order guide and its items?
Yes. An admin can associate a set with the order guide and its included catalog items. With Cascade variables selected, equivalent variable names allow answers from the guide to pass to ordered items. Validate this pattern with a single-row set before extending the design.
Will a shared pricing variable price an order guide?
Pricing is unsupported for order guide variables, including variables supplied through a set. Keep the guide’s information-gathering purpose separate from expectations about item pricing, and test the ordered items where the relevant pricing behavior belongs.
How should a reviewer examine a multi-row alternative?
Review its supported variable types before moving questions into it. Attachment and Label are among the types excluded from an MRVS. Also inspect scripts and UI policies defined within the MRVS, because item-level scripts and policies do not apply to its variables.
What should accompany a shared-set handover?
Provide the set’s internal name, its purpose, the consuming-item inventory, and the tested user scenarios. Include the person responsible for approving future definition changes. This gives the next maintainer enough context to assess a proposed change across the affected catalog items.