translations for onChange catalog client script through getmessage() method not working for none opt

Archana23
Tera Contributor

translations for onChange catalog client script through getmessage() method not working for none option in select box variable.

getMessage('None', function(msg) {

 
                g_form.addOption('users_role_in_the_organization', '', '-- None --');
            });
Please suggest if there is any mistake.
3 REPLIES 3

bishopx
Giga Guru

What exactly you want to achieve?

You want to add the a choice when the message loads?


Can you elaborate on your use case?

Shruti
Mega Sage
Mega Sage

Hi,

Check if there are translated messages for "None" key in sys_ui_message table. If there are no records you need to create translated message records in different languages with 'None' key

Sandeep Rajput
Tera Patron
Tera Patron

@Archana23 Could you please try the following.

 

getMessage('-- None --', function(msg) {

 
                g_form.addOption('users_role_in_the_organization', '', '-- None --');
            });