How to make a decimal formatting or currency formatting

Its pretty much straight forward

This is an example where the maximum length is 7 which is going to be 00000,00

Those examples is where the edited amount with the last 2 digits separated as cents its set to a label, and to set it to the same textbox as a like dynamic amount prompt, I did have a hard time figuring that out, but my solution was to make the textbox invisible, and overlay it with the label, as if you where directly typing on the label (you can do that with component tools extension setting the label to the textbox level)

And if you want to add more, its also pretty easy, my go to its just dupe the “if then” and changing the values “length” and “start” in segment text, this is an example

If someone types = 9999
It will turn it into = 99,99

The thing is, the length its not infinite, as you have to make more boxes depending on the maximum length

length1* 9 = 0,09
length2* 99 = 0,99
length3* 999 = 9,99
length4* 9999 = 99,99
length5* 99999 = 999,99
length6* 999999 = 9999,99
length7* 9999999 = 99999,99
and so on…