Add Variable section in custom table/form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2025 11:40 PM - edited ‎02-25-2025 12:23 AM
I created a custom table named Service Request which contains record producer variables. I wanted to add the variables in a form section, and I have several questions:
- How can I add the variables to a specific form section? I don't want to use the map to field functionality since I want the variables to be seen as how it looks like in the portal/frontend.
- For non admin user, I want the variables to be non-editable (read only), ACL should work right?
- There's a Watchlist variable I created with list collector type, but it shows like in the image. How can I achieve to show it like the watchlist field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 12:06 AM - edited ‎02-25-2025 12:08 AM
I am assuming that you have a created custom table and you have various fields in that custom table.
Then you have created a record producer in that custom table.
1. How can I add the variables to a specific form section? Open the record producer and map those variables with the fields of a custom table using script section. You can refer this blog Record-producer-map-to-field-on-variable
2. For non admin user, I want the fields to be non editable (read only), ACL should work right?? Yes, create ACL table_name.Field_name and mark it as Admin Overwrite.
3. Open your Record Producer in Service Portal in that view you will be able to see List Collector Variable properly.
From the Service Portal Record Producer are actually being accessed by the end users.
Refer Snip below
If my response helped, please mark it correct and close the thread so that it benefits future readers.
Regards,
Rohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 12:25 AM
Hi Rohit, thanks for your inputs. I am looking for a solution so that I will not use the map to fields functionality since I want the variables of the record producer to look like the same in frontend/portal. As for the watchlist field, I am referring to backend view. It's working fine in the frontend but in the backend, it's not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 01:11 AM
Responses inline
- How can I add the variables to a specific form section? I don't want to use the map to field functionality since I want the variables to be seen as how it looks like in the portal/frontend. -> Not possible. either use individual fields to store those variables or show them as variable editor
- For non admin user, I want the variables to be non-editable (read only), ACL should work right? -> that's correct
- There's a Watchlist variable I created with list collector type, but it shows like in the image. How can I achieve to show it like the watchlist field.-> this is OOB behavior for list collector in native view when rendered in variable editor
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 01:14 AM
Hi @Ankur Bawiskar , is there a different way to display the list collector variable same as this? I tried the map to field functionality for this but didn't work