• Resolved nelsonleemiller

    (@nelsonleemiller)


    I am using conditional logic to show various other fields based on the selection chosen in a select dropdown list. There are 4 items to choose. Each selection then presents new options, like this:

    Select > Option 1 = Textarea 1
    Select > Option 2 = Textarea 2
    Select > Option 3 = Textarea 3 + Input Field 1 + Input Field 2

    So nothing crazy, just pretty basic stuff. The problem is showing these items in the admin email notification.

    I thought I could show them something like this:

    {name-1}

    {select-1}

    {textarea-1}{textarea-2}{textarea-3}

    The problem is that it just outputs 0s (zeros) for all the other empty fields, the ones that are not shown to the user because of conditional logic. How can I avoid that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @nelsonleemiller

    There is also a “All Non Empty Fields” option in the email content that you could use instead of all single macros:
    {all_non_empty_fields}

    Could this work for you?

    Ref: https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#email-notifications-forms

    Warm regards,
    Dimitris

    Thread Starter nelsonleemiller

    (@nelsonleemiller)

    No, that’s kind of silly as I don’t want all the fields, I only want the ones they actually fill out. I’m pretty surprised it works the way it does! What else?

    Thread Starter nelsonleemiller

    (@nelsonleemiller)

    To clarify, the {all_non_emply_fields} adds all the labels and fields, and this looks really silly when I reply to the person. It defeats the purpose of merge tags.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @nelsonleemiller

    Thank you for the update.

    The problem is that it just outputs 0s (zeros) for all the other empty fields,

    I found it is a reported situation, our developers are already working on an update.

    I’m afraid we can’t give an estimated time but kindly keep eyes on the updates and changelogs.

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @nelsonleemiller

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conditional Logic Zeros 0 Output In Email’ is closed to new replies.