Display Multi Select Options and capture selected values in Ticket description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Team,
I have a requirement in a Record Producer and need guidance on the best approach.
Requirement
In a Record Producer form, I need to display:
- A label like: “Please select roles”
- Under this label, I need to display 30 role options
- The user should be able to select one or more role options
- These role options are static (not stored in any ServiceNow table)
After the user submits the record producer:
The selected roles must be captured and shown in the created ticket’s Description field (Incident/Request)
Please let us know your valuable suggestions.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @GaneshErike ,
To achieve this you can use script field in Record producers definition.
and for roles section, you can create role as a choices in sys_choice table, and configure list field in record producer to show the roles.
Thank you
G Ramana Murthy
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Use List collector variable. Now Since these roles are not stored in any service-now table you can store them in "sys_choice" table with some element like "xyz_RP_name".
In your list collector variable, you can select lookup table as "sys_choice" and reference qualifier should be based on the element you defined in "sys_choice" table for your choices.
You can also select the lookup value field as "value" inn your list collector variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I will recommend a custom table to store the values and then use List Collector variable pointing to that table
Easy to maintain going forward
OR
You will have to use Variable of type Custom and use widget to render those choices.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @GaneshErike ,
1.Create a variable of type Select Box and define all your roles as the individual question choices for that variable under the Question Choices Related List.
2.Now Change the variable type to List Collector , here select the table name as question_choice and add the reference qualifier as the
javascript : 'question=sysIdOfTheQuestion'Open the question_list table search for the record with Question as name of your variable and copy that record sysId and paste that sysId in the reference qualifier.
Now it will works as expected.
If my response finds helpful, please mark as helpful and accept the solution.
