allow only U.S order in the form

  • florpublishing
    Asked on December 19, 2020 at 2: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

  • Richie JotForm Support
    Replied on December 19, 2020 at 5:06 AM

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

    1608372168 5fddcfc82dc7c 3 Screenshot 10

    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 Screenshot 21

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


  • florpublishing
    Replied on December 19, 2020 at 6: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
    ...
  • Gustavo_H
    Replied on December 19, 2020 at 9: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  Screenshot 10


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

    1608431198 5fdeb65e67f7b  Screenshot 21


    Please, let us know if you need anything else. 


    Best regards, 😀✨

  • florpublishing
    Replied on December 19, 2020 at 9:55 PM
    Mine does not show me those options. See attached
    Thank you,
    Marci Greenberg Cox
    Flor Publishing LLC
    480-695-9683
    ...
  • Jimmy_D
    Replied 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  Screenshot 10

    (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  Screenshot 21

    • 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  Screenshot 32

    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.-

  • florpublishing
    Replied 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
    ...
  • Patrick_R
    Replied on December 20, 2020 at 1: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!

  • florpublishing
    Replied 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
    ...
  • florpublishing
    Replied 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
    ...
  • Jimmy_D
    Replied on December 20, 2020 at 12:47 PM

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

    1608486325 5fdf8db57aead xXO2u5RLOp Screenshot 10

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