Excluding Selected States

By: Kent Smith | Asked: 06/08/2023
ForumsCategory: General questionsExcluding Selected States
Kent Smith asked 1 year ago
We're using forms to take orders for a product. The product isn't available in selected states. How might I modify the form to not allow orders from selected states? 
1 Answers
Victor Font answered 1 year ago
Are you using a drop down for the states? If so, just show the states to which you deliver.
Kent Smith replied 1 year ago

I'm using the address field on the form. How would I remove the states I don't want to show in the state dropdown?

Victor Font replied 1 year ago

There's no specific example in the Formidable KnowledgeBase. However, there is this example for adding a state: https://formidableforms.com/knowledgebase/address/#kb-state-dropdown-list. =You need to modify code to delete array elements rather than using array_push() to add a state.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right