I have created a onChange client Script auto populate the user's mobile number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 05:12 AM
Hi,
I have created a onChange client Script auto populate the user's mobile number, but it is not working as per the expectation.
please find the below mentioned SS
onLoad:
onload is working fine but onchange is not working.
Thanks,
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 05:44 AM
@kranthi2 try to use Opened For field backend name in your script . when you map any variable with table field there backend name auto populate in name field . "Opened For" on incident form is custom field or ootb field ? or have you renamed the label ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 05:55 AM
Not understood exactly what you are trying to explain here.
Once i submit the form incident will be generating
Please help me out the script if i want to modify anything or
please provide us the exact script for onchange.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 06:02 AM
@kranthi2 Can you add alert inside callback function in your catalog client script to test the result.
eg: You can refer my above screenshot as an example.
alert('Phone is ' + r.phone);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 05:56 AM
@kranthi2 This is what i tried on my personal instance and you can see the alert result. its giving me the result.
I would suggest add some alert in your client script inside callback function to check the result.
eg: alert('Phone is ' + r.phone);
Hope it will help you.
Thanks,
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 06:17 AM
I have tried this but it is not working.
please provide sample script to auto populate only mobile number.
Thanks,