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 06:33 AM
@kranthi2 Are you doing it on personal instance then i can quickly check it ? script is absolutely fine i tested on my personal instance.
If possible you can connect via zoom or any webex , send me details on below email .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 05:27 AM
Hi @kranthi2,
You need to assign the variable 'r' for getReference in line 11. You haven't assigned it and then used it in your setValue.
If you found this reply useful, please mark it as solution/helpful.
Thanks and Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 06:34 AM
Hi @kranthi2
It appears that your script works fine from my end.
There're 2 different phone fields: Mobile phone [mobile_phone] and Business phone [phone]. Make sure you're using the correct field.
You can try the Auto-populate (no code feature) within the variable. And see if it works.
Cheers,
Tai Vu