title: How do I access gravity form checkbox values
body: <p>I have a form from gravity forms in my Wordpress site that has an input field and two checkboxes.
  I inspected the page and copy the exact same code from the inspector as you can see below:</p>
  
  <pre><code>&lt;input name="input_1" id="input_3_1" type="text" value=“Michael” class="medium" tabindex="1" aria-required="true" aria-invalid="false"&gt;
  
  &lt;input name="input_10.1" type="checkbox" value="sms" id="choice_3_10_1" tabindex="11" style="display: none;"&gt;
  
  &lt;input name="input_10.2” type="checkbox" value=“email” id="choice_3_10_1" tabindex="11" style="display: none;"&gt;
  </code></pre>
  
  <p>In my functions.php I want to access the email values and add to a specific post and the function looks like this:</p>
  
  <pre><code>add_action( 'gform_after_submission_3', 'set_post_content', 10, 2 );
  function set_post_content( $entry, $form ) {
  
      $post = get_post(1);
      $post-&gt;post_content = "Contact form updated Name: ”. rgpost('input_1)’ . ‘ SMS: ’ .rgpost('input_10.1') . ‘ Email: ’ . rgpost('input_10.2)’;
      wp_update_post( $post );
  
  }
  </code></pre>
  
  <p>UPDATE:
  After more research, I then noticed that using $entry['10.1'] I can access the checkbox value.</p>
  
  <p>Question: From the hook where I am (in functions.php) how can I evaluate if a checkbox has been checked?</p>
  
  <p>I tried using isset but it doesn't seem to work and I dont see any error.</p>