Support Article
Property value referenced in a field value is not localized
SA-50945
Summary
Property value referenced in a field value is not localized.
Error Messages
Not Applicable.
Steps to Reproduce
- Configure a field value that references a property
- Run the flow. In a subsequent screen, the field values are displayed in English.
- Switch to a different language
- Run the flow. The field values does not display in the set language
Root Cause
Localizing a property value that is referenced in a field value is not supported in the product by default.
Resolution
Perform the following local-change:
- Create a non-auto generated control, for example, LocalizationControl, and add the below code:
/* Body of LocalizationControl control starts */
<%
ClipboardProperty cp_active = tools.getActive();
String localizedValue = tools.getLocalizedTextForString("pyCaption" , cp_active.getStringValue());
%>
<%= localizedValue%>
/* Body of LocalizationControl control ends *
- Change the existing field value to use the custom control along with the property reference
Published March 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.