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.

Question

  1. yoavadler
    Member

    i have a form with a custom post field
    i am using the filter "gform_post_data
    How can i get the value of the custom field on this filter?
    I Believe its from the $form object but i couldn't find from doc how to retrieve the submitted value of the field,

    Yoav

    Posted 13 years ago on Tuesday May 3, 2011 | Permalink
  2. yoavadler
    Member

    After some research on the forum i saw this example

    add_filter("gform_post_data", "change_post_date", 10, 3);
    function change_post_date($post_data, $form, $entry){

    Althougth documantion explain this filter with this code:

    add_filter("gform_post_data", "change_post_type", 10, 2);
    function change_post_type($post_data, $form)

    So, does the usage of $entry object allowed (latest version)?

    Posted 13 years ago on Tuesday May 3, 2011 | Permalink
  3. Hi Yoavadler, Yes, the $entry object is passed to the gform_post_data filter.

    Posted 13 years ago on Wednesday May 4, 2011 | Permalink