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.

Multiple choice with text & link after each choice

  1. Is there a way that I can create a form with multiple choice and then text with a link after each choice?

    I will be running a site that includes film awards, and I would like members to be able to vote, but after the name of each film I'd like to include the link to where it can be viewed.

    Posted 14 years ago on Tuesday April 20, 2010 | Permalink
  2. You can do this with some jQuery added to your page template.

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery('.gchoice_17_0 label').html('vote for number 1 <a href="http://www.domain.com">&raquo; view link</a>');
    jQuery('.gchoice_17_1 label').html('vote for number 2 <a href="http://www.domain.com">&raquo; view link</a>');
    jQuery('.gchoice_17_2 label').html('vote for number 3 <a href="http://www.domain.com">&raquo; view link</a>');
    });
    </script>

    You would just need to customize the snippet with the actual list item classes from your form (replace .gchoice_17_0 etc.)

    test screenshot

    Posted 14 years ago on Tuesday April 20, 2010 | Permalink
  3. Thanks, I'll check out that code.

    Posted 14 years ago on Tuesday April 20, 2010 | Permalink
  4. Good tip, put output code doesn't validate: "document type does not allow element "a" here"

    Test form: http://www.digitohter.ee/sylearvuti-laadijad/acer (script now removed)

    Is there any way to make this script valid?

    Posted 13 years ago on Sunday December 12, 2010 | Permalink
  5. Just try externalizing the jQuery script and then reference the .js file in the document head. That should validate without any problems.

    Posted 13 years ago on Sunday December 12, 2010 | Permalink
  6. Thanks, that works!

    Posted 13 years ago on Sunday December 12, 2010 | Permalink

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