bug? validation and groups

A place for users and developers of the Xataface to discuss and receive support.

Postby sstoddard » Tue Aug 14, 2007 4:50 pm

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.
sstoddard
 
Posts: 14
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Aug 15, 2007 9:52 am

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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby sstoddard » Wed Aug 15, 2007 12:47 pm

Yes, that did the trick? though I don't understand why. Really a non-issue now.

Cheers,

Steve s.
sstoddard
 
Posts: 14
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 18 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved