WordPress.org

Forums

Caldera Forms
[resolved] Form notification - conditions? (9 posts)

  1. YukiAme83
    Member
    Posted 12 months ago #

    I've only tried your plugin today, and I'm already spoiled for any other form builder that may come my way. Brilliant!

    Here is a small question:
    I have a checkbox in my form, and I would like to know if the person checked it. However, if I simply include the magic tag in notification, and the box is left unchecked, the message shows the magic tag code... Is there a way to only show this item if it's checked?

    P.S. While I was playing with this option, I've come across an interesting thing: if I checked the box, then clicked on it again, removing the sign before clicking Submit, the notification (and the entry in the plugin) still showed me that the checkbox was checked...

    https://wordpress.org/plugins/caldera-forms/

  2. David Cramer
    Member
    Plugin Author

    Posted 11 months ago #

    Hi There, thanks for the compliment!

    The plugin is still new so there are a few issues here and there, but I'm getting them sorted.

    There are a few issues with the magic tags in the current version but they are being addressed in the update. Specifically with checkboxes. hence the issue you mention.

    The update is coming soon. If you want to try the update now, take a look at the Github repo https://github.com/Desertsnowman/Caldera-Forms the 1.0.x branch has the latest version, but is updated frequently so check back often if you find problems.

    I am adding in tag code that allows you to show parts of the message depending on options. sort of a conditional login for the message.
    It will be simply [if slug] value: %slug% [else] not selected [/if]

    There is also an paid addon coming soon to allow conditional mailer recipients. This allows the mailer to go to separate recipients depending on options the sender set.

  3. David Cramer
    Member
    Plugin Author

    Posted 11 months ago #

    I have just pushed v1.0.5 which corrects the problem and includes the [if] conditional tags.

  4. YukiAme83
    Member
    Posted 11 months ago #

    David, thanks a lot for your rapid response, and wow, what a quick update! The condition works like a charm.

    I'm sorry if I sounded like I was complaining - far from it! I saw that the plugin was new, and thought I'd let you know if there were some bugs, so you know and can tackle them at your convenience.

    There're two more small things I've noticed - again as a suggestion only:
    - for a dropdown, the option "don't select anything" needs to be added manually, which can be a bit awkward on occasion;
    - the phone field marked "required" sees a couple of digits as sufficient, despite the mask.

    Thank you for working on this great plugin!

  5. David Cramer
    Member
    Plugin Author

    Posted 11 months ago #

    I didn't take it as complaining at all! I'm very thankful for all input.

    The dropdown had an issue with the No Default. Selecting this now creates a selected blank entry for you.

    I'll take a look at the phone field.

    I would appreciate a rating if you feel up to writing one.

  6. YukiAme83
    Member
    Posted 11 months ago #

    Will do!

  7. ElectricMonk111
    Member
    Posted 11 months ago #

    Hi, David - please could you explain the syntax of the conditionals a bit more? I've just tried it and it doesn't seem to work. In my Auto Respnder message I've put the line:

    [if name3] value: %name3% [else] .. [/if] [if reqs3] - %reqs3% [else] .. [/if] [if child3] - %child3% [else] .. [/if]

    - but when the email is generated that line just appears verbatim in it. name3, reqs3 and child3 are all text fields that have been left empty.

    I'm on version 1.1.1.

    Many thanks

    Andy

  8. David Cramer
    Member
    Plugin Author

    Posted 11 months ago #

    That syntax looks correct. I'll take a look at it and see if I didn't break something again.

  9. ElectricMonk111
    Member
    Posted 11 months ago #

    Thanks very much!
    I'm filling in the form in Preview mode, if that matters.

    If the slug does have a value, it is substituted correctly. The conditionals tags just seem to be ignored completely.

    For example if I include this line in my auto-responder:

    [if name2] Second person: %name2% [else] No second person [/if]

    then if the name2 field is filled in with "Bob", the resulting email contains the line:

    [if name2] Second person: Bob [else] No second person [/if]

Reply

You must log in to post.

About this Plugin

  • Caldera Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic