- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2023 05:13 AM
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.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2023 06:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2023 06:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2023 06:38 PM
Do note that the
:
after keyword javascript should actually be a colon character - but SN quality strikes again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 12:38 AM
@-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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 12:53 AM
Of course security is important. And sanitation has to be done. But properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2023 12:35 AM
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();