core icon indicating copy to clipboard operation
core copied to clipboard

Structure Manager - Not possible to create a checkbox field as decimal or whole number

Open gabbydotCMS opened this issue 14 years ago • 4 comments

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

gabbydotCMS avatar Jun 14 '12 16:06 gabbydotCMS

Tested on server running code from tag 2.0 on postgres.

gabbydotCMS avatar Jun 14 '12 16:06 gabbydotCMS

Screenshots:

http://jira.dotmarketing.net/secure/attachment/5826467/checkbox+decimal.jpg http://jira.dotmarketing.net/secure/attachment/5826468/checkbox+whole+number.jpg

gabbydotCMS avatar Jun 14 '12 16:06 gabbydotCMS

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

gabbydotCMS avatar Jun 15 '12 21:06 gabbydotCMS

working great for decimal and whole numbers on checkboxex

DeanGonzalez avatar Aug 15 '12 14:08 DeanGonzalez