Confiforms: Text masks and masked input

Bartosz Drożdżal October 12, 2023

Hi,

i have a problem with Masked Text field type Numeric in Registration FormView.
I would like this field to have, for example:
1) if i entry in this field 999999, the field showed the value 9 999,99
2) if i entry in this field 123456700 the field showed the value 1 234 567,00

I would like the field to be masked always with two decimal digits and a thousand separator.
How can i do this?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2023

Hi

Masked text is about entering a value in a full pattern. It is not about formatting the output. Form that ConfiForms has virtual functions such as formatNumber and alike

To answer your question you can do this

Screenshot 2023-10-12 at 13.32.40.png

Alex

Bartosz Drożdżal October 12, 2023

Thanks!

Is there any way to set the output format on the registration form?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2023

What do you want specifically? Output format does not make much sense on an input (which form view is)

Bartosz Drożdżal October 12, 2023

Przechwytywanie.JPG

 

I complete the "Kwota" field in the registration form by entering the string 12345600 from the keyboard.
I would like the screen to show 123 456,00 in this field.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2023

set mask to 999 999,00

Bartosz Drożdżal October 13, 2023

It does not work.
If i set this mask, I can't enter a value greater than 999 999,99 :(

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2023

Well, put 99999999,99 as a mask

Bartosz Drożdżal October 13, 2023

That's not what I mean.
If i enter 12345600, I would like the screen to show 123 456,00
If i enter 999999900, I would like the screen to show 9 999 999,00
If i enter 8700099912, I would like the screen to show 87 000 99,12

Is it possible to do this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events