checkbox widget refuses to be a checkbox

Archived from the Xataface Users forum.

mikewassil — Wed Feb 11, 2009 4:29 pm

Version: xataface-1.1.2

The checkbox widget refuses to display, instead I get a select widget instead. With the two versions of Dataface I’m familiar with, this was never a problem.

Database field:

Publish enum(‘Y’,’N’) default NULL

fields.ini:

[Publish]

widget:type = checkbox

widget:label = “Add to Bibliography List”

widget:description = “Select to Add Entry to Bibliography List”

widget:atts:style = “font-size: 10pt; font-weight:normal; font-family: Sans Serif”

OR

[Publish]

widget:label = “Add to Bibliography List”

widget:description = “Select to Add Entry to Bibliography List”

widget:atts:style = “font-size: 10pt; font-weight:normal; font-family: Sans Serif”

Neither will display a checkbox, only a dropdown selector.

Michael


shannah — Wed Feb 11, 2009 4:53 pm

Thanks for reporting this. Likely somewhere along the way I have added an override for the widget type of an ENUM field (this should not happen so I consider this a bug).

Normally checkbox widgets are used with boolean (tinyint) fields where 1 indicates checked and 0 not checked.

I’ll add this to the issue tracker so that it can be fixed in future versions.

-Steve


mikewassil — Thu Feb 12, 2009 7:47 pm

shannah wrote:Thanks for reporting this. Likely somewhere along the way I have added an override for the widget type of an ENUM field (this should not happen so I consider this a bug).

Normally checkbox widgets are used with boolean (tinyint) fields where 1 indicates checked and 0 not checked.

I’ll add this to the issue tracker so that it can be fixed in future versions.

-Steve

Thanks, Steve. I changed the relevant fields to tinyint and it’s working correctly.

Michael