- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2015 02:09 AM
Hi All,
I have written below script to auto populate one field, "onChange" of another field. It is working fine on catalog form but it is not working on RITM form.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var val = g_form.getReference('user',pop);
function pop(val)
{
alert("inside fun");
g_form.setValue('region',val.email);
}
}
Please try this and let me know if you have any solution for this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2015 10:36 PM
I raised a ticket for this issue in HI instance and they provided the solution like below
if (typeof g_sc_form != "undefined")
var val = g_sc_form.getReference('user',pop);
else
var val = g_form.getReference('user',pop);
I tried this and it is working perfectly....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2015 04:15 AM
Hi,
Can you confirm if "Applies on requested item" is checked to true on the catalog client script you have created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2015 05:14 AM
Yes, I checked it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2015 10:21 PM
Hi All,
Any idea on this. I tried the same in demo, there also same issue ..........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2015 07:30 AM
Are it is a OOTB issue.