Field showing both English and Chinese choices

Brijmohan
Tera Contributor

Hi,

 

I have translated all choices in Chinese language. In record producer, I am referring choice table for a variable choice (variable type - lookup select box) but on the Employee Service Center both English and Chinese choices are coming in the field.

But when I am looking in table view and creating new record only Chinese are showing. 

Don't know why this is happening, is there any restriction on platform and portal view?

 

PFA snap for the same.

Brijmohan_0-1677244254080.png

Brijmohan_1-1677244294528.png

 

Thanks in advance!

 

1 ACCEPTED SOLUTION

That (Priority working) is be because that Select Box variable is configured to "copy" the choices from a table field configured with choices.

However as far as I can tell, you need to filter choices based on what is selected in another variable/question (Case type).

That is only possible using reference qualifier.

Adding the language filter should be working for you - I can successfully reproduce it/make it work.

However the reference qualifier must start with keyword/token javascript: - this being the case is not obvious from what you have posted.

Like below:

javascript: 'name=sn_spend_psd_procurement_request^element=u_type^dependent_value=' + current.variables.case_type + '^language=' + gs.getUser().getLanguage();

Also you must add a variable attribute to the Lookup Select Box:

ref_qual_elements=case_type

Otherwise the reference qualifier is only applied on load.

View solution in original post

16 REPLIES 16

That (Priority working) is be because that Select Box variable is configured to "copy" the choices from a table field configured with choices.

However as far as I can tell, you need to filter choices based on what is selected in another variable/question (Case type).

That is only possible using reference qualifier.

Adding the language filter should be working for you - I can successfully reproduce it/make it work.

However the reference qualifier must start with keyword/token javascript: - this being the case is not obvious from what you have posted.

Like below:

javascript: 'name=sn_spend_psd_procurement_request^element=u_type^dependent_value=' + current.variables.case_type + '^language=' + gs.getUser().getLanguage();

Also you must add a variable attribute to the Lookup Select Box:

ref_qual_elements=case_type

Otherwise the reference qualifier is only applied on load.

-O-
Kilo Patron
Kilo Patron

Do note that the

:

after keyword javascript should actually be a colon character - but SN quality strikes again.

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@-O- , 

The change of the ":" is actually a very important security concept called "Sanitization", just to make you aware,

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

Of course security is important. And sanitation has to be done. But properly.

Brijmohan
Tera Contributor

Hi @-O- ,

 

Thanks for your prompt response. It is working for me.

javascript: 'name=sn_spend_psd_procurement_request^element=u_type^dependent_value='+current.variables.case_type+'^language='+gs.getUser().getLanguage();