# Order form filter

**URL:** <https://integration.keap.com/t/order-form-filter/64080>\
**Category:** Max Classic\
**Created:** [February 13, 2019, 12:28am UTC](https://integration.keap.com/t/order-form-filter/64080 "2019-02-13T00:28:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Gatchalian](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Anthony\_Gatchalian](https://integration.keap.com/u/Anthony_Gatchalian)\
**Post date:** [February 13, 2019, 12:28am UTC](https://integration.keap.com/t/order-form-filter/64080/1 "2019-02-13T00:28:53Z")

</div>

Our new CBD product cannot be sold in some states, is there a way to show an error message in the order form if the customer enters the state that is included on our do not sell list. I’m not sure if there is a partner application that I can install?

---

<div class="post-metadata">

**Author:** ![Jeff\_Arnold](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/jeff_arnold/32/14802_2.png) [@Jeff\_Arnold](https://integration.keap.com/u/Jeff_Arnold)\
**Post date:** [February 13, 2019, 1:03am UTC](https://integration.keap.com/t/order-form-filter/64080/2 "2019-02-13T01:03:38Z")

</div>

I would read through this thread. Looks like it may have your answer – just only include the states that you are legal in, and then put “if your state is not listed, then this product cannot be purchased in your state”.

> [@Change "State" input field to a dropdown style input on order form?](https://integration.keap.com/t/change-state-input-field-to-a-dropdown-style-input-on-order-form/37721/5):
>
> Thanks for your help John. I found this java from someone trying to do a similar thing in IS and it looks correct, but for some reason it’s not working. It is from 2013 but should still work. Any clue what is going wrong here? \<script\> $(document).ready(function() { $("#state").attr('maxlength','2'); $("#shipState").attr('maxlength','2'); }); \</script\> \<script\> $(function() { var availableTags = [ 'AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA',…

Hope that helps.

Jeff

* * *

Jeff Arnold, President

4Spot Marketing

Infusionsoft Certified Partner

PlusThis Certified Partner

Zapier Certified Expert

4Spot Marketing • [4SpotMarketing.com](http://4SpotMarketing.com)

11700 W Charleston #170-160 • Las Vegas • NV • 89135

O: 702-721-9763 • C: 702-525-9763

[Client Testimonials](http://4spotmarketing.com/client-testimonials/) • [Book an Appointment](http://4spotmarketing.com/schedule-appointment/)

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [February 13, 2019, 4:17am UTC](https://integration.keap.com/t/order-form-filter/64080/3 "2019-02-13T04:17:13Z")

</div>

You can pre-validate based on conditions using Javascript on order forms. Obviously that would require some custom coding.

---

<div class="post-metadata">

**Author:** ![Anthony\_Gatchalian](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Anthony\_Gatchalian](https://integration.keap.com/u/Anthony_Gatchalian)\
**Post date:** [February 15, 2019, 6:43pm UTC](https://integration.keap.com/t/order-form-filter/64080/4 "2019-02-15T18:43:39Z")

</div>

Thank you Jeff & John! I ended up subscribing to Spiffy and they helped me add those code in the HTML area.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/infusionsoft1/original/2X/7/7ca0fe8b2af450609bd4b99adecea73734a26ca1.png)
