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 values of selected checkbox fields

  1. fpf


    I tried to get the values of the selected checkbox fields to post them in a customized e-mail notification by using this code in functions.php:

    The form looks like this:

    The form-ID of the checkbox is 3, respectively the three value-IDs should be "3.1", "3.2" and "3.3".

    If I use this code, I don't get anything back.
    What is wrong with this? Unfortunately I'm new to PHP programming...

    Any help is greatly appreciated!

    P.S.: I'm using the current version of GF

    Posted 10 years ago on Monday February 27, 2012 | Permalink
  2. fpf

    I solved the problem...

    I used $value1= rgpost('input_160.1');
    istead of
    $value1 = rgpost('input_160_1'); (with _ )

    Posted 10 years ago on Tuesday February 28, 2012 | Permalink