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.

Making radio buttons exclusive

  1. I have a big job application and a part of that is an Equal Opportunities section;

    http://tlc-carehome.esdev.co.uk/working-at-tlc-care/latest-vacancies/application-for-employment/?id=337&title=Support%20Worker

    (page 2)

    What I need to happen is the user can only select 1 from the 5 options, I can do this fine with jQuery.

    The problem I have is the form is broken up into 5 pages and when you navigate through it seems to loose the script.

    jQuery('.equal_opp').find(':radio').attr('name', 'opt');

    I'm adding this in the functions with the 'gform_pre_render_1' filter.

    If I remove the paging so the form is one page it works fine.

    Many thanks for any help

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  2. I think you need to use the gform_page_loaded event to load your script on every page of a multi-page form:

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

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  3. Great stuff worked a treat.

    Many thanks

    neil

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  4. You're welcome Neil.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink

This topic has been resolved and has been closed to new replies.