Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem with Checkboxes on contact form

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

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

Page: 1
Go to End
Author Topic: 2740 Views
  • SLJ
    Avatar
    Community Member
    23 Posts

    Problem with Checkboxes on contact form Link to this post

    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

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Problem with Checkboxes on contact form Link to this post

    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.

  • SLJ
    Avatar
    Community Member
    23 Posts

    Re: Problem with Checkboxes on contact form Link to this post

    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?

  • SLJ
    Avatar
    Community Member
    23 Posts

    Re: Problem with Checkboxes on contact form Link to this post

    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.

  • kevbeck
    Avatar
    Community Member
    1 Post

    Re: Problem with Checkboxes on contact form Link to this post

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

    Any resolution?

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Problem with Checkboxes on contact form Link to this post

    Yep, happens to me as well.

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

  • tone77
    Avatar
    Community Member
    10 Posts

    Re: Problem with Checkboxes on contact form Link to this post

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

  • tone77
    Avatar
    Community Member
    10 Posts
    2740 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.