Page 1 of 1

PostPosted: Tue Aug 14, 2007 4:50 pm
by sstoddard
This appears to be a bug.

I have a form with grouped variables. Only one of which is required (set NOT NULL in MySQL). When setting attributes, I give it the following:

[dim_height]
group = "Container characteristics"
widget:label = "Height"
validators:regex = "/[0-9]/"
widget:atts:size = 3

However, with this set, the data in the form never saves to my database. Only by commenting out 'group ?' will it save.

Or am I missing something?

Steve S.

PostPosted: Wed Aug 15, 2007 9:52 am
by shannah

However, with this set, the data in the form never saves to my database

Does it give you an error at all?Ê If so, what is the error message?
One thing that you can try is to not have any spaces in the group name.
e.g.
[dim_height]

group = "Container_characteristics"

widget:label = "Height"

validators:regex = "/[0-9]/"

widget:atts:size = 3

If you want to change the label of the group, you can add a section to your fields.ini file like:
[fieldgroup:Container_characteristics]
label=Container characteristics
-Steve

PostPosted: Wed Aug 15, 2007 12:47 pm
by sstoddard
Yes, that did the trick? though I don't understand why. Really a non-issue now.

Cheers,

Steve s.