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.

Add onclick on radio button

  1. zagriyen
    Member

    Hi,
    How to add onclick on a radio button list,
    I want my form submit when an user change the value on a radio in my multi-page form
    I try this, but not work

    jQuery(document).ready(function(){
       jQuery('#choice_20_0').bind('onchange', function (){
       	jQuery("#gform_target_page_number_1").val("3");
       	jQuery("#gform_1").trigger("submit",[true]);
       });
    });
    Posted 6 years ago on Tuesday March 26, 2013 | Permalink
  2. Can you share the URL to the page on your site where you tried this so we can see what's happening? Thank you.

    Posted 6 years ago on Tuesday March 26, 2013 | Permalink
  3. zagriyen
    Member

    The website is on my local dev environnement,
    but, for reduce user action (click) I want add onclic event on each radio input for submit my form and go on the next gravity form page ( multi-page )
    by adding this on each input radio :

    onclick="jQuery("#gform_target_page_number_1").val("3"); jQuery("#gform_1").trigger("submit",[true]); "
    Posted 6 years ago on Tuesday March 26, 2013 | Permalink
  4. I understand what you're trying to do, but need to see it in practice to be able to help troubleshoot why it's not working. If you have another domain which is publicly accessible, please install it there and share the link to that page.

    I did ask the development team about that same bit of code to see if it is still working with current versions of Gravity Forms. http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=4#post-184199 I have not yet heard back, but the resolution there will likely help in your case as well.

    Posted 6 years ago on Tuesday March 26, 2013 | Permalink
  5. zagriyen
    Member

    Thank you, finaly I'll use the submit button and pending the onclick on radio method

    Posted 6 years ago on Wednesday March 27, 2013 | Permalink
  6. Is this working for you now? I am unclear if you still need assistance or not. Please let us know.

    Posted 6 years ago on Saturday March 30, 2013 | Permalink
  7. Also, I just posted a suggestion for a similar topic here: http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=6#post-189906

    Posted 6 years ago on Saturday March 30, 2013 | Permalink