Add Variable section in custom table/form

Vee Jay Recana
Mega Guru

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.

VeeJayRecana_0-1740469150894.png

 

7 REPLIES 7

Rohit  Singh
Mega Sage

Hi @Vee Jay Recana 

 

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

 

RohitSingh3_0-1740470472015.png

 

 

If my response helped, please mark it correct and close the thread so that it benefits future readers.

 

Regards,

Rohit

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.

Ankur Bawiskar
Tera Patron
Tera Patron

@Vee Jay Recana 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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

 

VeeJayRecana_0-1740474827789.png