Type: Percentage #2238
Replies: 2 comments 1 reply
-
Would be easier to create a seperate percentage type entry module and filter method which calls the numeric entry type and filter method in order to prevent creating a module and method with 100% code duplication plus a bit formating. Or would it be easier to add a format flag for the numeric entry type and filter to prevent any duplicate code and just add the formating bits needed. |
Beta Was this translation helpful? Give feedback.
-
I'd proper use the existing Something like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to introduce a
type:percentage
info entry.This would behave similarity to a
type:numeric
entry but with a few differences.It would add the
suffix: %
for you.It would multiply the value by 100 for you (percentages are stored in the database as 0 - 1 scale).
It would also work when using filtering correctly (ie the number would need to be divided by 100 to facilitate this).
We spend a lot of time multiplying values either using
fieldfx
- which means filters don't work.Or by multiplying by 100 in views or tables or adding additional columns - which is a storage problem potentially.
Let me know thoughts!
Beta Was this translation helpful? Give feedback.
All reactions