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

  • homelink
    Answered on February 19, 2013 10:35 AM

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

  • Jonathan JotForm Support
    Answered on February 19, 2013 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.

  • homelink
    Answered on February 19, 2013 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
  • KadeJM
    Answered on February 19, 2013 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>

  • homelink
    Answered on February 19, 2013 01:19 PM
    Hi,
    Thanks, I've got if figured out.
    Karl
  • homelink
    Answered on April 02, 2013 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

  • KadeJM
    Answered on April 02, 2013 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

  • homelink
    Answered on April 18, 2013 12:44 PM
    The highlighted portion is there to select a particular button otherwise people had a tendency to miss making a selection.
    Karl
  • Jonathan JotForm Support
    Answered on April 18, 2013 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.

  • homelink
    Answered on April 19, 2013 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
  • homelink
    Answered on April 19, 2013 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
  • jeanettebmz
    Answered on April 19, 2013 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 Screenshot 10

     

    It was released a month ago. See the updates here