Replace last > characters with input
We are trying to create a label that has a number on it, 2400000 and we want the user to be able to put in any number of characters, under 5 and it replace the last so many characters with what the user keys in. For example if the user keys in 3, you get 2400003 if they key in 234 you get 2400234. Is this possible?
-
Peter Thane
★ BarTender Hero ★
The simplest way would probably be to make the label field out of two substrings.
The first string could either be just the 24 as a fixed item or else the full 2400000 but then with Transforms>Truncation>Keep character on left set to 2.
String 2 would gets its base value from the user field which is then configured by the Transforms>Number of Characters>Minimum set to five with 0 padded to the left automatically.
In the image below the two combined substrings are set as Object Value fields as their source but these could come form a database etc if required instead
0
Iniciar sesión para dejar un comentario.
Comentarios
1 comentario