Passing data from Server script widget to record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi everyone,
I’m working on a custom Service Portal widget where users select a Yes/No checkbox.
From the HTML, I correctly receive “true” or “false” when the user clicks the checkbox.
On the client side, I send this value to the server script using localInput.notification_answerwhich return true or false.
However, when trying to pass it from the widget server script to the Record Producer, the field remains empty when I print it. I tried with a string, I correctly receive it on the server side script print it well but I can't find a way to send to the variable of the record producer which should populate another field thanks to the answer on the HTML
Has anyone successfully passed a checkbox value from a Service Portal widget to a Record Producer? Any guidance on ensuring the value actually populates the target record would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
from widget client controller you can get and set variable value of record producer.
what's your actual business requirement?
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