Question
4
Replies
124
Views
Posted: February 14, 2019
Last activity: February 15, 2019
"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?
Hello,
If your are capturing the telephone value in string property then please use below EditInput code to append +XX :
if(!(theValue.startsWith("00") || theValue.startsWith("+") ) )
{
theValue= "+XX"+theValue;
}
Regards,
Praveen