Login Register

dijit.form.CurrencyTextBox

I have a dijit.form.CurrencyTextBox control in a form, if i try and valid it with a value of "20" then i get an error saying invalid field but a value of 20.00 validates fine.

Is it possible to get the dijit.form.CurrencyTextBox validator to accept that "20" as being the same as "20.00" ie accept that curreny values can be added without decimal places

the fractional portion should be optional by default

This could be a bug. If you want to allow whole values only, you should set constraints={fractional:false}