What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Two Submit buttons - Two thankyou URLs (no conditions)

    Asked by Swoodruff2002 on October 01, 2015 at 11:42 PM

    Have I have two Submit buttons at the end of my form and two thankyou URLs? I know I can use conditional Logic to direct the thanyou URL, but I want the user to have a choice which option to choose:

     

    BOOK AN APPOINTMENT   & BACK TO NEWS

    My form is not collection any other data, so I have no fields to define conditional logic...

    http://www.jotform.com//?formID=52637143439963

    http://screencast.com/t/semcaHHYkH

     

    Thanks,

     

    Steve

     

     

     

     

     

     

    Page URL:
    http://www.jotform.com//?formID=52637143439963

  • Profile Image
    JotForm Support

    Answered by EltonCris on October 02, 2015 at 05:42 AM

    Unfortunately, you can't achieve that with only submit buttons on form. You can't perform condition with the submit buttons itself. It has to be fields to trigger conditions.

    However, I believe that can be easily achieved through simple hyperlinks then add custom CSS codes so the hyperlink text would look like buttons.

    Here's how:

    1. Delete the two submit buttons on your form.

    2. Add a text tool and place the following codes. Make sure to replace the text I have highlighted in green with the actual URL you want each buttons to redirect to.

    <a class="redbutton" style="margin-right:60px;" target="_blank" href="YOUR BOOKING LINK HERE">BOOK A CALL</a><a class="redbutton" target="_blank" href="YOUR NEWS LINK HERE">BACK TO NEWS</a>

    Here's a visual guide:

    3. Inject this CSS codes to your form so these hyperlinks would look like buttons.

    .redbutton{text-decoration:none;border: 1px solid #a60000 !important;background: #e60d00;padding: 9px 15px;font-family: "Trebuchet MS", sans-serif;font-size: 14px;cursor: pointer;border-radius: .5em;box-shadow: inset 0px 1px 0px 0px #f29d93;color: #FFF;font-weight: bold;text-shadow: -1px -1px 0px #a60000;}

    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes-to-your-Form

    If you need further help, let us know.

  • Profile Image

    Answered by Swoodruff2002 on October 02, 2015 at 02:47 PM
    Thanks – While I was waiting for a response, I tried something similar… I use images the look like buttons, and then gave each one a URL link. See http://form.jotformpro.com/form/52739054791968?


    But for some reason the button image has an odd outline/boarder around it. Could be the size of the source image –adjusting that now.

    Thoughts?

    Steve

    ...
  • Profile Image
    JotForm Support

    Answered by Mike on October 02, 2015 at 04:17 PM

    The issue seems to be caused by form styles. This is possible to add the next CSS via form designer in order to remove the outline border from images.

    li[data-type="control_image"] img {
    border-style: none !important;
    }

    If you need any further assistance, please let us know.

  • Profile Image

    Answered by Swoodruff2002 on October 02, 2015 at 04:47 PM
    Sorry where does this go? I went to designer and highlighted the image of the button, and added the
    li[data-type="control_image"] img {
    border-style: none !important;
    }
    But preview is still showing outline: http://screencast.com/t/N5aWF8CYGN

    Steve


    ...
  • Profile Image
    JotForm Support

    Answered by Mike on October 02, 2015 at 05:58 PM

    You have added it correctly, but code was not working since there were two CSS errors (missing brace and missing semicolon).

    I have fixed the CSS errors, so the form should be fine now. Thank you.