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.

Validating form, Read-only fields and Pre_render Hook

  1. Here is the thing:
    I have a form with a few custom filters using the pre_render hook. A dropdown list of provinces is monitored (via JQuery) and a tax rate field (read-only) is populated based on selection (and used to calculate the grand total). See my code here
    EVERYTHING WORK FINE EXCEPT, when a required field is missing, it reloads the page showing the required fields highlighted. The problem now is that when this happens, my dropdown is no longer 'monitored' and my read-only fields become editable.
    How can I fix this? Here is my code....
    http://www.pastie.org/3361172

    Thanks

    Posted 12 years ago on Wednesday February 22, 2012 | Permalink
  2. PLease this seems very simple. I just need a nudge in the right direction. Someone pls help!

    Posted 12 years ago on Tuesday February 28, 2012 | Permalink
  3. Still NEED HELP!!!!!!

    Posted 12 years ago on Friday March 2, 2012 | Permalink
  4. Still NEED HELP!!! Some one hint me.

    Posted 12 years ago on Monday March 5, 2012 | Permalink
  5. You have to re-initiate your javascript when the refresh occurs.

    Do you have AJAX enabled on this form so that the form uses AJAX? If so, there is a hook you use to re-initialize javascript when this happens. Documentation for this hook is here:

    http://www.gravityhelp.com/documentation/page/Gform_post_render

    Posted 12 years ago on Tuesday March 6, 2012 | Permalink
  6. Sorry, I couldnt make it work (yet)...
    Please have a look at my code.
    http://pastie.org/3531470
    How can I use the post_render hook?

    Posted 12 years ago on Tuesday March 6, 2012 | Permalink
  7. Sorry, I couldnt make it work (yet)...
    Please have a look at my code.
    http://pastie.org/3531470
    How can I use the post_render hook?

    Posted 12 years ago on Tuesday March 6, 2012 | Permalink
  8. Hi there,

    Give this a shot:

    http://pastie.org/3537313

    The trick is wrapping your existing JS bits in "jQuery(document).bind('gform_post_render', function(){" rather then the "jQuery(document).ready(function(){" wrapper.

    Posted 12 years ago on Tuesday March 6, 2012 | Permalink