
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2018 11:14 PM
Hi Team,
I have a requirement as below.
Sub category field is dependent of category field so I created onChange Catalog client script to achieve this.
Now I wanted to translate sub category options to other languages based of loggedin user language.
I have tried below option but not working.
Created translations in System Localization > Messages.
Using it in catalog client script like below:
Please help me if anybody know how to correct
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 09:31 PM
I found the solution for the above issue:
code working for me:
else if(newValue == "Employee Data Change"){
getMessage('Employee data change', function(msg){
g_form.addOption('u_category_2', msg , msg );
});
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2018 11:34 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2018 11:45 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 12:46 AM
No.
it seems you are not utilising the "Messages" field in client script form.
Edit form layout and add Messages multiline text in your form first.
Then fill that messages field with key value used in translation.
then use getMessage in your code.
if you follow the above steps your issue will be resolved.
Refer the below link for more details
Thanks,
satheesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 09:31 PM
I found the solution for the above issue:
code working for me:
else if(newValue == "Employee Data Change"){
getMessage('Employee data change', function(msg){
g_form.addOption('u_category_2', msg , msg );
});
}