PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

conditional logic based on state

  1. I'm trying to set flexible shipping costs based on the state, if CA or not CA.

    Is this really the best solution available?

    http://www.gravityhelp.com/forums/topic/extract-state-from-address

    It feels like such a hack and makes the form look horrible.

    Additionally, I'd love to have a "Shipping is Pending based on State" so they know that the shipping will be updated after they choose a state in the address section.

    thoughts?

    jonathan
    http://wpforce.com

    Posted 9 years ago on Saturday November 17, 2012 | Permalink
  2. That is the best way I know of, to make a state available for conditional logic.

    The "shipping pending based on state selection" notation would have to be added to the page with jQuery, then watch for a change in the state field and once that field no longer has focus, remove the notice and show that the calculated shipping amount is displayed.

    Posted 9 years ago on Saturday November 17, 2012 | Permalink
  3. Bummer.

    Here is the solution I'm using instead, which is in line with what was originally suggested.

    I was easily able to do it by adding a separate "State" selection and called it "Shipping State" and then I added a Select State to the dropdown with the pre-populated States. Then, in the conditional logic, I added "is not" Select State, that way it didn't auto-select Alabama, but it also gives the user the feeling that they need to select a state.

    Hopefully this can be improved in future versions of GF.

    Thanks Chris,
    jonathan
    http://wpforce.com

    Posted 9 years ago on Saturday November 17, 2012 | Permalink
  4. Thanks for posting your solution. We'll tag this as a feature request as well, so it does not get overlooked.

    Posted 9 years ago on Saturday November 17, 2012 | Permalink
  5. Thanks!

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink