• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Empty form fields should not appear in Admin Mail.

Empty form fields should not appear in Admin Mail. 5 years 1 week ago #41130

  • info5792
  • info5792's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,
I apologize in advance for my bad english.
I have a membership application form with conditional fields.
The user has the option to register as a member himself or to give a membership to a friend as a gift.
In this case, additional form fields open.

I would like to design the Admin Mail in such a way that unused / not completed fields do not appear in it.
This means that if someone registers himself as a member, the conditional fields for the friend should not be listed in the mail.

How can you do that?

Thanks. Greetings Frank


Leere Formularfelder sollen nicht in Admin Mail erscheinen.


Hallo,
ich entschuldige mich vorab für mein schlechtes englisch.
Ich habe ein Formular für einen Mitgliedsantrag mit bedingten Feldern.
Der Nutzer hat die Möglichkeit sich selbst als Mitglied anzumelden oder eine Mitgliedschaft an einen Freund zu verschenken.
In dem Fall öffnen sich zusätzliche Formularfelder.

Ich möchte die Admin Mail nun so gestalten, dass nicht genutzte / nicht ausgefüllte Felder darin auch nicht erscheinen.
Das bedeutet das wenn sich jemand selbst als Mitglied anmeldet, sollen die bedingten Felder für den Freund nicht mit in der Mail gelistet werden.

Wie kann man das realisieren?

Danke. Gruß Frank
The administrator has disabled public write access.

Empty form fields should not appear in Admin Mail. 5 years 1 week ago #41132

  • dragos
  • dragos's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 678
  • Thank you received: 129
Hello,

RSForm!Pro incorporates a specialized IF statement syntax that can be used to include / exclude content from your email / thank you message. You can read more about this topic here.
The administrator has disabled public write access.

Empty form fields should not appear in Admin Mail. 2 weeks 3 days ago #44253

yeah, THIS SHOULD BE HARDCODED/INCLUDED IN THE CODING OF YOUR FORMS - WE SHOULDN'T HAVE TO DO THIS. WHY WOULD ANYONE EVER NEED TO SEE BLANKS?
The administrator has disabled public write access.

Empty form fields should not appear in Admin Mail. 2 weeks 3 days ago #44254

  • dragos
  • dragos's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 678
  • Thank you received: 129
Hello,

Have you tried using the 'Auto-Generate Email Message' instead? Further info here.
The administrator has disabled public write access.
The following user(s) said Thank You: support9249

Empty form fields should not appear in Admin Mail. 2 weeks 3 days ago #44255

Thank you for that helpful information. I just tested on the ADMIN email and it's fine for the ADMIN email to have additional information, but I want the BUYER to receive a professional-looking email that has the REQUIRED FIELDS' information, but NOT the FIELD:VALUE printed out that was NOT REQUIRED.

EXAMPLE OF MY CURRENT EMAIL OUTPUT:

14. Selected Generation 14 Ancestor: asdfasdf asdfasd who married asdfasdf asdfasd <---REQUIRED/MANDATORY ENTRY
15. Selected Generation 15 Ancestor: asdfasdf asdfasd who married asdfasdf asdfasd <---REQUIRED/MANDATORY ENTRY
16. Selected Generation 16 Ancestor (If any): {sixteenthgenchild:value} who married {sixteenthgenspouse:value} <---NOT REQUIRED ENTRY
17. Selected Generation 17 Ancestor (If any): {seventeenthgenchild:value} who married {seventeenthgenspouse} <---NOT REQUIRED ENTRY

I am reading your pages remove uncompleted fields and PHP Email Scripts right now, so I'll figure it out....just wish I didn't have to.

Prior to the PHP "revolution" after PHP7, the Joomla 4 component that I used since 2014 did all of this "out of the box". It was around for 15 years or so, then the owner "disappeared" and moderators held on to the forum for a while - then the forum closed. I was still using that component until a week ago on Joomla5. Long-story-short, I am using RSForms now and I like it. It's just a learning curve.

Thanks RSJoomla staff and developers. Chat soon!

UPDATE: SUCCESSFUL EXAMPLE

I am happy that I have successfully created a form that has mandatory entries and optional entries, and the optional entries that ARE EMPTY do not show up in the USER & ADMIN emails!!!

I used the code from Dynamically adjust email and entered it like this:

(showing CODE EDITOR VIEW on the "EDIT THE EMAIL TEXT" block):

<p>9. Selected Generation 9 Ancestor: {ninthgenchild:value} who married {ninthgenspouse:value} </p> <
MANDATORY ENTRY FIELD
<p>10. Selected Generation 10 Ancestor: {tenthgenchild:value} who married {tenthgenspouse:value} </p> <
MANDATORY ENTRY FIELD
<p>11. Selected Generation 11 Ancestor: {if {eleventhgenchild:value}} {/if} who married {if {eleventhgenspouse:value}} {/if} </p> <----THIS IS WHERE I CHANGED THE SYNTAX
<p>12. Selected Generation 12 Ancestor: {twelthgenchild:value} who married {twelthgenspouse:value} </p> <----OPTIONAL FIELD WITHOUT THE CHANGED SYNTAX

EMAIL OUTPUT:

9. Selected Generation 9 Ancestor: asdfasdf who married asdfasdf
10. Selected Generation 10 Ancestor: asdfasdf who married asdfasdf
11. Selected Generation 11 Ancestor: george who married <----AS YOU CAN SEE I ENTERED "GEORGE" AND LEFT THE 2ND OPTIONAL ENTRY BLANK - IT SHOWED UP BLANK IN EMAIL
12. Selected Generation 12 Ancestor: asdfasdf who married asdfasdf

So I'm off to a great start using this page Dynamically adjust email
Last Edit: 2 weeks 3 days ago by support9249.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!