Structure Manager - Not possible to create a checkbox field as decimal or whole number
When the data type of a checkbox field is set to decimal or whole number, this message is shown when trying to save the field: "You have entered invalid data. Enter valid numbers". No error messages are recorded in dotcms.log.
The options entered when selecting decimal format were:
Canada|1.2 Mexico|2.0 USA|3.5
The options entered when selecting whole number format were:
Canada|1 Mexico|2 USA|3
with 3 as default value
Tested on server running code from tag 2.0 on postgres.
Screenshots:
http://jira.dotmarketing.net/secure/attachment/5826467/checkbox+decimal.jpg http://jira.dotmarketing.net/secure/attachment/5826468/checkbox+whole+number.jpg
Hi JT,
This issue was a stopper for us to get Secure Forms approved, so I asked Ozzy to code the change so that we could create a hotfix plugin to apply to HCA's SF servers.
I also asked Ozzy to commit the code to this branch:
https://github.com/dotCMS/dotCMS/tree/issue-603-decimal-and-number-checkbox-field
but I'm not sure if we should request the change to be pulled yet since the fix is scheduled to be released on 2.1.1.
Gabby
working great for decimal and whole numbers on checkboxex