Posted: 14 Feb 2019 3:34 EST Last activity: 15 Feb 2019 3:17 EST
"Edit Input" depending on other property value
We have an application that will be used in multiple countries in which I want to format a telephone number in an international format when a local number is entered ==> so add +XX in front of the number if the phone doesn't start with "00" or "+".
To know which international code to add by default, I want it to be dependend on the locale of the operator.
Am I able to check this value in the Edit Input rule? And if so, how do I do this?
Thnx for the reply, but the question is not how to add the prefix to the string, but how to do a check on the property .pyUseLocale of the Data-Admin-Operator-ID class when doing the "edit input" on the phone number.