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.

gform_advanced_settings Uncaught TypeError: Cannot set property 'gform_xx'

  1. Hi im trying to extend gf and adding additional advanced settings utilizing the gform_advanced_settings hook, however when following the documentation (which referes to the example for gform_field_advanced_settings I get the error :
    Uncaught TypeError: Cannot set property 'gform_xx' xx being the new setting option,,
    how do I get advanced settings to save?

    Posted 11 years ago on Tuesday June 12, 2012 | Permalink
  2. David Peralty

    Are you placing your code in your theme's functions.php file and can you show us the code you are using?

    Posted 11 years ago on Tuesday June 12, 2012 | Permalink
  3. Hi David,
    Thanks for the prompt reply, My work is in a Plugin (Im a plugin developer) and working on local machine,
    we have decided to go another route, i.e the paypal add-on way,, essentially try this:

    gform_field_advanced_settings example but replacing the gform_field_advanced_settings hook to a gform_advanced_settings hook (and changing the $position like the documentation says to refer to this example) there are other differences that make the gform_field_advanced_settings not work as an example for gform_advanced_settings I would suggest adding a specific example for the gform_advanced_settings documentation.

    Posted 11 years ago on Tuesday June 12, 2012 | Permalink
  4. David Peralty

    How is your plugin accessing the Gravity Forms hooks? Without seeing your code it will be difficult to help. Can you send what you feel comfortable with to peralty@rocketgenius.com and I'll try to help troubleshoot. As far as I'm aware, there aren't any differences between the two hooks except for what the documentation makes mention of: The only difference is the location of where the custom setting is output.

    Posted 11 years ago on Tuesday June 12, 2012 | Permalink