umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
29 stars 0 forks source link

Decimal as field type #1228

Open bjarnef opened 1 month ago

bjarnef commented 1 month ago

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

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

AndyButland commented 2 weeks ago

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?

bjarnef commented 2 weeks ago

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.