Can you add or create links in the dropdown format

  • Donald_Hickling
    Asked on October 14, 2015 at 11:44 PM
  • Boris
    Replied on October 15, 2015 at 5:01 AM

    Unfortunately, that is not possible due to web standards - there can't be any links inside the option elements of the Drop Down field.

    Drop Down options are designed to be selected when clicked on, not to automatically redirect users to a different page when the option is clicked. However, if you describe us what you are trying to achieve, we will be happy to look for possible alternatives.

    For instance, if you want to redirect users to some specific URL when they selected a certain option, you can use Conditional Logic to redirect them after the submission, and not before.

    If you need further assistance, please do let us know in a little more detail about what you are trying to achieve, and we'll do our best to help.

  • Donald_Hickling
    Replied on October 15, 2015 at 12:11 PM

    Thanks for the response.  Here is what I am trying to do.  I am copying/creating a drop down menu similar to the one that Farmers has on this link under " Browse Coverage for your specific industry"

    The link below will show you what they have done and how it links to the specific pages for that type of industry. 

    http://www.farmers.com/business/loss-control/

    To get to the specific page, all I have to do is click on the subject. 

    Can we do something like that? 

     

     
  • jason
    Replied on October 15, 2015 at 12:30 PM

    Hello Donald. 

    If you'll be using the dropdown menu purely as a hyperlink, it would be better if you use the dropdown menu generator instead. 

    The power of JotForm lies in its ability to collect data and process it.

    But if you won't be collecting data, the best route is the dropdown menu generator.

  • KadeJM
    Replied on October 15, 2015 at 2:52 PM

    As Boris explained earlier to you at first it is indeed not ideal within your form's dropdowns though you can generate it after submit with his suggestion using conditional logic.

    Additionally though, we can attest that if you aren't planning to use it specifically for collecting data as intended then Jason's suggestion with the Html Menu Generator would be much more suitable for to do this without the hassle of trying to force it to work that way. And that you could then add separately or with the form's source code to make it work in a similar way.

  • Donald_Hickling
    Replied on October 15, 2015 at 5:42 PM

    Thanks for the tip Jason.  It is what I am looking for.  I am just trying to link it to content.  Do you know if you can add more rows than the 10.  I have 13 subjects that I need to provide links to.

  • Donald_Hickling
    Replied on October 15, 2015 at 5:44 PM

    Thanks Kade.

  • jason
    Replied on October 16, 2015 at 1:37 AM

    Hey Donald. 

    You just have to copy and paste the <option> entry below 12 more times and replace the website address where it says "INSERT URL HERE" (don't remove the double quotes) and the entry where it says "INSERT NAME HERE".

    <form>

    <select onDISABLEDchange="location=this.options[this.selectedIndex].value;">

    <option value="INSERT URL HERE"> INSERT NAME HERE </option>

    </select>

    </form>

     

  • Donald_Hickling
    Replied on October 16, 2015 at 4:09 PM

    Jason, thank you very much. 

  • Boris
    Replied on October 17, 2015 at 6:37 AM

    Thank you for your additions, Randy, it will come in handy to other users.

    If you guys need any other assistance with your forms, do not hesitate to open a new thread about it, and we'll be happy to help.