• Resolved sandeld

    (@sandeld)


    I have an extremely simple sign up form that employees use to get people to sign-up with they come in and visit a physical retail store. NOT AN ONLINE STORE.

    When people sign-up, they receive a “free spin” to get discounts and other promotional stuff if they buy something in the store that day.

    There are only 2 fields: email and phone number (and only the email is required); however, we need to display 3 possible messages.

    1. If it’s their first time ever, they have to at least enter their email. In which case, we display the “Success: single opt-in” message.
    2. When they come back the next time, we want to check the phone number field in MailChimp.
    • If the phone number field is empty in MC, ask them to please sign-up again with a phone number this time.
    • If the phone number field has something in it, ask them to please leave a google review.

    First, does that make sense? And second, is that possible with some functions, hooks, or filters you’ve already created? (with examples?)

    Thank you!

    • This topic was modified 4 years, 10 months ago by sandeld.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @sandeld,

    That level of conditional responses isn’t included in our plugin. That being said, as long as you are using the AJAX submissions, you could probably do this in javascript. Our plugin does trigger some events using jQuery that you can hook into, and you can use event.preventDefault() to keep the rest of our code from running if they haven’t met your validation needs.

    Let me know if that helps,
    Jon

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Hello @sandeld,

    Just checking in.

    Please let us know if you still need help with this issue.

    Thank you!
    -Tracy

    Thread Starter sandeld

    (@sandeld)

    I went with gravity forms. They have a more straightforward solution using PHP, which I’m more familiar with.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Great, I’m glad you found a solution.

    Take care.
    -Tracy

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add conditional custom messages?’ is closed to new replies.