Umbraco.Forms.Issues icon indicating copy to clipboard operation
Umbraco.Forms.Issues copied to clipboard

Decimal as field type

Open bjarnef opened this issue 1 year ago • 2 comments

Currently it is possible to add a custom field type storing one of these FieldDataType:

  • String
  • LongString
  • Integer
  • DateTime
  • Bit

image

However I wonder if there's a specific reason there is no decimal/float/long value?

E.g. compared to value type of label property editor in Umbraco core.

image

bjarnef avatar Jun 03 '24 20:06 bjarnef

No specific reason. IIRC decimal was added as a value type later in CMS, and it's not been added to Forms.

Could be done. In terms of prioritising, I'd be interested to to know if find you have use cases for it out in the real world of building projects, or do you just notice it as something missing when you look at the features?

AndyButland avatar Jun 16 '24 07:06 AndyButland

I don't have a specific usecase at the moment, but for some kind of submission for a ticket and e.g. price (eventually multiple choice for a (half)marathon or event like Codegarden) I would probably use a decimal value for a Price field type. It can of course be done using a string or interger in major units as a workaround.

bjarnef avatar Jun 16 '24 16:06 bjarnef