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

-O-
Kilo Patron
Kilo Patron

You have to add a reference qualifier, actually to update it to include a clause limiting the choices to one of the two languages.

Brijmohan
Tera Contributor

Hi @-O- ,

 

In the native view if my language is English then only English choices are coming and when I am changing language Chinese only Chinese choices are showing but on the ESC both are visible. 

It should be visible based on the logged in user language. 

 

I have tried with the below reference qualifier but it is not working.

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

 

Thanks.

On the variable definition, there's a tick box that says "show unique only" or words to that affect, when it's ticked it will show per language (no need for code),

Many thanks,
kind regards

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

Hi @Alex Coope - SN ,

 

I have selected that checkbox "Unique Values Only" and now only English choices are showing. I have tried impersonate with the Chinese user but not working only English choices are there.

 

Thanks.