String Format

Looking for a way to format this string

439107828105 this is a bank account nr and should look like this

439-1078281-05

tried working with # but that only seems to be working in a number field, and this is a text field

Or is the only way the tools plug-in. Found a reference to this while looking for a solution

Doing this with # won’t do the trick but you should be able to mask a textfield also. Dont know the correct format though.

You can google for javascript+mask…

My tools plugin won’t help you (good idea btw) in this case I guess…

Johan posted the following in another thread.

for textfields you can use these now:

Original Thread: From toUpperCase to toOriginalCase - Classic Servoy - Servoy Community

THX,

but will have to wait until 2.2 is production ready so it seems.

Yes, that is true - it’s in 2.2.