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

    Using PayPay Pro with the embedded Javascript script, is it possible to pre-select options?

    Asked by homelink on February 19, 2013 at 10:35 AM

    Using PayPay Pro with the embedded Javascript script, is it possible to pre-select a radio button?



    This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters

    pre-select select
  • Profile Image
    JotForm Support

    Answered by jonathan on February 19, 2013 at 10:50 AM

    Hi,

    Yes. You can do it by using the steps describe on this guide; -Prepopulating-the-fields-to-your-JotForm-via-URL-parameters

    Here is an example using one of your form. Please click this link:

    http://www.jotformpro.com/form/30494253183958?membershipOptions=1004

    Hope this help. Please inform us if you have more inquiry.

    Thanks.

  • Profile Image

    Answered by homelink on February 19, 2013 at 11:44 AM
    Thanks, I saw that technique several places on your site.
    Unfortunately, I can't use it because of the restrictions we have on URLs on our CMS. The page name must exactly match the URL or the server will throw an error. The page must appear to be hosted on our site so I can't access the form directly from JotForms as your example shows. As I said initially, the form must be embedded via a Javascript script.
    Can pre-selecting a button be done by injected CSS within the PayPal Pro system?
    Karl
  • Profile Image
    JotForm Support

    Answered by KadeJM on February 19, 2013 at 01:02 PM

    Hi Karl, I don't quite think it will be possible to preselect it with css because the Input is part of the html code which is found and specified in the source of the form. Depending on how restrictive your url's are it might be possible to use it in conjuction with a custom domain for your form to get it to match though it would still have to contain the populated information afterwards to carry it over.

    Example:

    <select>
      <option value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="vw">VW</option>
      <option value="audi" selected>Audi</option>
    </select>

  • Profile Image

    Answered by homelink on February 19, 2013 at 01:19 PM
    Hi,
    Thanks, I've got if figured out.
    Karl
  • Profile Image

    Answered by homelink on April 02, 2013 at 06:29 AM

    Usimg your example above causes a button to be selected but when I click the option to pay by credit card instead of PayPal, the number of checked button is inserted in the first field.

    http://www.jotformpro.com/form/30494253183958?membershipOptions=1004

    The field "First Name" will contain "1004"

    Is there a way to prevent this?

    Karl

  • Profile Image
    JotForm Support

    Answered by KadeJM on April 02, 2013 at 09:16 AM

    Karl, I think this is happening because of the parameter you are using at the end of it " membershipOptions=1004 ". The reason I say this is because when I cloned and removed it, the First Name Field no longer contains that information. 

    Your Form with Parameter:

    http://www.jotformpro.com/form/30494253183958?membershipOptions=1004

     

    Cloned Form without Parameter:

    http://form.jotform.us/form/30913383152146

  • Profile Image

    Answered by homelink on April 18, 2013 at 12:44 PM
    The highlighted portion is there to select a particular button otherwise people had a tendency to miss making a selection.
    Karl
  • Profile Image
    JotForm Support

    Answered by jonathan on April 18, 2013 at 01:54 PM

    Hi Karl,

    The technique of pre-selecting options via URL parameter to select options in payment field is actually almost obsolete.

    The functionality is already built-in to the form. It is now an added capability/feature in the payment fields. Please check this guide

    How-To-Add-Options-In-The-Payment-Form

    Among the option is pre-selecting  an item, and even making it mandatory.

    Could this be what you were looking for? I think there is no need to use the URL param induced method.

    Please inform us should you have further inquiry.

    Thanks.

  • Profile Image

    Answered by homelink on April 19, 2013 at 09:54 AM
    No. That's not it at all.
    If I have, say, four radio buttons, I want to choose to have one of them automatically pre-selected. I do not want to add a quantity box.
    Karl
  • Profile Image

    Answered by homelink on April 19, 2013 at 09:59 AM
    Follow up. Pre-selecting a button is the easiest thing in the world to do with a conventional form. Just include "checked" in the button code.
    I was able to do this when Netscape was all the rage. What's so hard about doing it in JotForms today?
    Karl
  • Profile Image

    Answered by jeanettebmz on April 19, 2013 at 11:42 AM

    You can now set any product into a payment integration list of products as "Selected by Default" or "Required", you can even choose both

    https://cms.jotform.com/uploads/image_upload/image_upload/global/13871_set%20product%20as%20required%20or%20selected%20by%20default.png

     

    It was released a month ago. See the updates here