I have to get checkbox value on Target table list field ?

sanjeet1245
Tera Guru

I have a requirement to create a multiple selection checkbox field, where I can select multiple options.

I have to store the values of the options in the corresponding table when record producer is submitted.

Ex:

sanjeet1245_0-1701974991278.png

 

I want to store the checkbox values in the corresponding field of the table(incident) when record producer is submitted.

There is no option to create the checkbox in the table, I have created the list field   and tried to map the options from the record producer but its not working.

How this functionality can be achieved.

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @sanjeet1245 

 

Multi-select is not directly available. You need to go through list collector. also to do mapping in the incident table  please check the OOTB Record producer , create Incident and it is all script required. 

 

https://www.servicenow.com/community/developer-forum/checkbox-variable-to-showcase-multiple-options/...

 

https://www.servicenow.com/community/developer-forum/how-to-add-multi-select-checkbox-on-form/m-p/15...

 

https://www.servicenow.com/community/now-platform-forum/how-can-you-create-a-multiple-choice-check-b...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

SanjivMeher
Kilo Patron
Kilo Patron

If you created a list field, in the producer script, you need to set the current.<list field name>= <comma separated value of all checkbox that is selected>.

Other option is creating a text field and storing the checkbox in comma separated value.

Another option is adding the incident variable formatter to the form, so the assignee can see what the user selected.


Please mark this response as correct or helpful if it assisted you with your question.

Peter Bodelier
Giga Sage

Hi @sanjeet1245,

 

How do you want to store the options? When we know that, we can tell you how to do that.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.