Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Problem with Checkboxes on contact form


Go to End


8 Posts   3584 Views

Avatar
SLJ

Community Member, 23 Posts

2 July 2007 at 7:39am

Issue:
I created a Contact Form page and added 4 checkboxes in a checkbox group to it. Everytime I modify the form in the CMS it duplicates the checkboxes. Right now I have 5 instances of each checkbox field. I have tried deleting and recreating the form. I could delete them from the database but I'm hoping for a way to prevent this from happening in the first place. I'm also worried that if I make a mistake deleting them, it will break the submissions piece.

Environment: SS v2.0.1 PHP v5.2.0 Apache v2

Avatar
xmedeko

Community Member, 94 Posts

2 July 2007 at 3:28pm

Delete them directly in the Database. You can empty all EditableXXX tables, if you do not need to preserve any fields. Otherwise you have to delete only fields, which you do not need. Especially the fields with ParentID = 0;

Before making any such a form, first save the page and then start adding fields. This is a bug of SilverStripe.

Avatar
SLJ

Community Member, 23 Posts

2 July 2007 at 7:33pm

Thanks, I only have one of each checkbox, but now I have a different issue.

There are 5 check boxes in the check box group and they are all checked when the page loads.

They are not checked in the CMS, and that field in the DB has a value of 0, but for some reason they are all checked.

In Safari for Windows I can not uncheck them. Is there something I missed?

Avatar
SLJ

Community Member, 23 Posts

2 July 2007 at 7:48pm

UPDATE: I figured out the problem with not being able to uncheck them in Safari, but I still have the issue of them all coming up checked by default.

Any help on this would be greatly appreciated.

Avatar
kevbeck

Community Member, 1 Post

6 May 2008 at 2:49am

Edited: 06/05/2008 2:50am

I'm having the same problem with Silverstripe 2.2.1, which can be viewed here:
http://edwardsvillelibrary.org/computer-user-survey

Any resolution?

Avatar
Fuzz10

Community Member, 791 Posts

6 May 2008 at 3:21am

Edited: 06/05/2008 3:21am

Yep, happens to me as well.

Please create a ticket for this bug , I couldn't find an existing one.

Avatar
tone77

Community Member, 10 Posts

10 October 2008 at 12:59am

This same problem is still happening in 2.2.2. Any chance this will be fixed soon?

Avatar
tone77

Community Member, 10 Posts

11 October 2008 at 12:11am