allow only U.S order in the form

  • Profile Image
    florpublishing
    Asked on December 19, 2020 at 02:50 AM

    I want to use paypal for purchasing the book I am selling. I am going to offer free shipping and include the tax but this is for U.S. orders. What happens if I get an international sale? I don't want to pay the shipping...as I don't know what that will be

  • Profile Image
    Richie_P
    Answered on December 19, 2020 at 05:06 AM

    You can use the get visitor location to get the country your of the user filling your form.

    1608372168_5fddcfc82dc7c_3.png

    You may use conditions to hide the submit button once the country is not US.

    Guide:https://www.jotform.com/help/316-how-to-show-or-hide-fields-base-on-users-answer

    Sample condition:

    1608372359_5fddd08772def_4.png

    Please give it a try and let us know if this fits your requirements.


  • Profile Image
    florpublishing
    Answered on December 19, 2020 at 06:44 PM
    I'm not sure...if I hide this then they can't make a purchase?
    Thank you,
    Marci Greenberg Cox
    Flor Publishing LLC
    480-695-9683
    ...
  • Profile Image
    Gustavo_H
    Answered on December 19, 2020 at 09:30 PM

    Hi, Marci. I am glad to help you today.


    It should be sufficient as your user can only pay after submitting the form. To ensure that only US users will fill your form, you can also hide the entire form and show an error message.

    Here is a condition example.

    1608430995_5fdeb593156b2_


    Here is the entire setting up and the user experience from a not US user.

    1608431198_5fdeb65e67f7b_


    Please, let us know if you need anything else. 


    Best regards, 😀✨

  • Profile Image
    florpublishing
    Answered on December 19, 2020 at 09:55 PM
    Mine does not show me those options. See attached
    Thank you,
    Marci Greenberg Cox
    Flor Publishing LLC
    480-695-9683
    ...
  • Profile Image
    Jimmy_D
    Answered on December 19, 2020 at 11:20 PM

    This is what you can do:

    • Use the Multiple Choice field to create custom products.
    • Add a spinner element as quantity field. (One for each product)
    • A calculation widget to calculate the subtotal (one for each product)

    1608437520_5fdecf1074dac_

    (The layout of the fields can be customized)

    • Add a number field to your form that will receive the shipping cost. 
    • Add a calculation widget that will be used to calculate the total cost. 
    • Select user-defined amount in the PayPal payment settings. And then the Total (calculation widget) in the Get Price From menu.

    1608437660_5fdecf9c77b49_

    • Add the Get visitor location to your form and use conditional logic to calculate Calculate the shipping cost based on the country where the user is located. 

    Example:

    1608437700_5fdecfc4da99d_

    Here is a demo created using a clone of your form.- https://form.jotform.com/203538581044959 (This is still customizable). Feel free to check it out.

    If this seems to complicated you can create a separate form for International clients only.-

  • Profile Image
    florpublishing
    Answered on December 19, 2020 at 11:44 PM
    Well I was going to include shipping and tax for US customers but I don’t
    want to do that for international
    ...
  • Profile Image
    Patrick_R
    Answered on December 20, 2020 at 01:25 AM

    Hello! Our apologies for the confusion.

    Kindly note that to ensure that only US residents can order using your form; you'll need to fetch the visitor's country code using the Get Visitor Location widget and then create a SHOW condition to bind the country code value to the visibility of your Submit button and the Products list widget.

    I've prepared a demo form which does this: https://form.jotform.com/203540469454962
    This will only show the Submit button and the Product list, if the visitor is from the US.

    This is the screencast that shows how this form was prepared: https://drive.google.com/file/d/1sMhhL0mGbCGQic53e07AGQsxatOLI6f2/view?usp=sharing

    You can clone this form into your own account to further check its implementation.

    I hope this solves your purpose. In case it doesn't or if you have any further queries, then let us know.

    Thank you!

  • Profile Image
    florpublishing
    Answered on December 20, 2020 at 10:55 AM
    When I click on country code is shows Country Code: US but then I can't
    copy it. I tried to clone what you have and it shows visitor country in
    the preview and I can't hide it.
    Thank you,
    Marci Greenberg Cox
    Flor Publishing LLC
    480-695-9683
    ...
  • Profile Image
    florpublishing
    Answered on December 20, 2020 at 11:11 AM
    Does it have anything to do with the address? under address properties I
    click option and it only shows American states and I can default a country
    which I have united states but I don't show country on my form. Will this
    alone with out having to do the widget suffice? Also the extensions that
    you show in the video when I click on my extensions I don't have those
    available.
    Thank you,
    Marci Greenberg Cox
    Flor Publishing LLC
    480-695-9683
    ...
  • Profile Image
    Jimmy_D
    Answered on December 20, 2020 at 12:47 PM

    Kindly select TEXT BOX in the Address settings to add a country field.

    1608486325_5fdf8db57aead_xXO2u5RLOp.gif

    If you are referring to the VPN @Patric_R used. This is part of his computer settings, not a Jotform feature.