Find State in a mutilne address block

I have the user type their address in a multiline text block. I then need to figure out if they are in California for tax calculation.
The address they type can include any of these forms for the state.
CA, Ca, ca.
How do I create a conditional that can pick our any of these three forms. Having a bit of confusion with “Contains”.
My website is nearly done, except it applies the tax wrongly, because my conditionals for not picking out the state incorrectly. Sometimes yes, other times no.

Wouldn’t it be better to use a geographic address for this?.. especially if it’s for something important like working out tax…

Strong agree on your post, @adamhholmes.

A geoaddress lets you get any part of any valid address.

But if you don’t want to do a geoaddress, your best option may be to just make your user select a state from a dropdown listbox.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.