title: Add Yes or No tickboxes to my site (Silverstripe)
body: <p>I am trying to add a yes or no check boxes to one of my member forms on my Silverstripe site. I have added the boxes to the site as well as to the member section in CMS. The idea is that they should be linked eg when you tick yes on the site, the member section should be ticked yes as well. I've been trying but couldn't get the check boxes linked. </p>
  
  <p>It has been a while since I touched Silverstripe, so any directions would be appreciated. Also how do I make the checkboxes to be you can only tick yes or no, at the moment you can tick both. </p>
  
  <p>Here are my code so far, I will continue work on it, but it would be great if someone can point me to the right direction. Many thanks.</p>
  
  <pre><code>$fields = new FieldSet( ...
      new CheckboxSetField('Questions','Do you want to show this?', array('true' =&gt; 'yes', 'false' =&gt; 'no'))
  ...);
  
  function doSignup($data, $form) {
  $member = Member::currentUser();
  ...
  $member-&gt;Questions = $data['Questions'];
  ...
  }
  
  function extraStatics() {
      return array(
          'db' =&gt; array(
             ...
            'Questions' =&gt;"Enum('Yes,No')", 
              ...
          ), 
      );}
  
   public function updateCMSFields(FieldSet &amp;$fields) {
    ...
     $fields-&gt;addFieldToTab('Root.Membership', new CheckboxSetField('Questions','Do you want to show this?', array('true' =&gt; 'yes', 'false' =&gt; 'no'))); 
  }
  </code></pre>