Hi folks,

is it possible do define a field's mask through domain?

Eg. for numbers: 1000000 => 1.000.000 ?; for phone: +43123456789 => (+43) 123 456 789 ?

Thansks, Tomas

asked 22 Jul '12, 07:00

Tomeo's gravatar image

Tomeo
162143
accept rate: 3%


For numbers, you can use numberMask attribute of textField. "#,###" would work for your case. If you want to use dots instead of commas as thousand seperator, you should define a language for your app in IDE with thousand & decimal seperators are set to "." and ",".

For phone numbers, you can use formattedField with format="(+##) ### ### ###" but keep in mind that it only accepts values in correct format. So setting its value to +43123456789 will not work.

If you are asking for different formatting bahaviours for the same component, than its not possible.

link

answered 23 Jul '12, 02:45

oskansavli's gravatar image

oskansavli ♦♦
3604
accept rate: 45%

Adding a mask format field to domain would be a nice feature. If it's possible, please add add it in one of your next releases.

link

answered 16 Sep '12, 12:23

Tomeo's gravatar image

Tomeo
162143
accept rate: 3%

Hi. How can I set a space(' ') instead of a comma(',')?

For example, 1000000 => 1 000 000

In your blog you wrote about DecimalFormat.js. Whether it is possible to use it as?

link

answered 22 Apr '14, 04:05

Ramil's gravatar image

Ramil
41211
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: 22 Jul '12, 07:00

Seen: 1,542 times

Last updated: 22 Apr '14, 04:05


© Copyright Gerger 2017