How to access user inputs from a record producer in the client script and server script of a widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 11:22 PM
Hello Community!
I'm working on a project where we've set up a Record Producer in ServiceNow. This form includes several fields(Customer Name, Customer Email) where users can input their information. I've also added a custom field which is a widget called 'Connect Your Bank Account,' which functions as a button.
I have a specific requirement where, once the user clicks on the 'Connect Your Bank Account' button, an alert box should appear displaying the customer's name and email as entered in the form. For example:
Alert box
Customer name: John |||
Customer email: john@t.com
OK
After the user clicks OK on the alert box, I need the inputs to be updated by appending '01' to both the name and email fields, like this:
Customer name = John_01
Customer email = john@t.com_01
Summary -
On button click, I want to access user inputs from the fields on the record producer form using the client script of the widget and update/set these field values from the same script.
Any insights or suggestions on how to achieve this would be greatly appreciated!