


Sir
in textfield display pattern any way to add a prefix in textfield
i try it
text{'Name' AAAAAAAAAAAAAAAAAA}
BUT when name in two words (e.g. Michal Shumakar) its not worked.
The 'A' symbol will match alphabetic characters, which the space character is not.
You could try text{'Name ' XXXXXXXXXXXXXXX} which will work for "Michal Shumakar", 'X' matches any character, but will only match a 14 character value.
You probably want to try doing this in code.
Views
Replies
Sign in to like this content
Total Likes
any other way to add a prefix in a textfield at runtime.
Views
Replies
Sign in to like this content
Total Likes
WHEN I select email alphanumeric pattern
its work fine when less than 14 characters text{OOOOOOOOOOOOOO'@example.com'}
but not working in case of text{'Name ' XXXXXXXXXXXXXXX}
Views
Replies
Sign in to like this content
Total Likes
You can create the pattern depending on the length of the input string dynamically.
Add this script to the fields exit event:
if (!this.isNull) {
this.format.picture.value = "text{'Name '" + new Array(this.rawValue.length + 1).join("X") + "}";
}
working fine thanks
Views
Replies
Sign in to like this content
Total Likes
any short script for this dispaly pattern
null{'Name :'}|text{'Name : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' '}
Views
Replies
Sign in to like this content
Total Likes
It's almost the same:
if (!this.isNull) {
this.format.picture.value = "text{'Name: '" + new Array(this.rawValue.length + 1).join("X") + "}";
} else {
this.format.picture.value = "null{'Name: '}";
}