PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Get value of checkbox after user registration

  1. g01010
    Member

    Hi

    I've got this:

    add_action("gform_user_registered", "process_order", 10, 4);
    
    function process_order($user_id, $config, $entry, $user_pass) {
        // get first and last name from $entry
        $order_id = $entry['id'];
        $quantity = $entry['8'];
        $refresher = $entry['15'];
        $tx = $entry['transaction_id'];
    }

    $entry['15'] is a checkbox field. I can successfully get the value of the other fields but not of the checkbox - is there something different I need to do for that type of field?

    Posted 11 years ago on Friday December 21, 2012 | Permalink
  2. Dump the $entry as a debugging step (either var_dump($entry) or print_r($entry) and see what values it contains, so you know how to access it. Please post the contents of the $entry object at pastebin.com or pastie.org if you need help.

    Posted 11 years ago on Friday December 21, 2012 | Permalink