• 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: Send only not empty fields

Send only not empty fields 13 years 6 months ago #11843

  • au9879
  • au9879's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hello!

Is it possible to send only fields that user filled (that are not empty) and not all the fields in the form? Could it be done in html (user email tab in design mode) or do i need script for this?

Example:

now I have in user emails tab in html mode entries like this:

{Naziv:caption} {Naziv:value}
{Naslov:caption} {Naslov:value}
{Delovni:caption} {Delovni:value}
{Kontakt:caption} {Kontakt:value}
{Kontak_st:caption} {Kontak_st:value}
{Elektr:caption} {Elektr:value}
{Opombe:caption} {Opombe:value}
{Datum:caption} {Datum:value}

I would like to send an email, that contains only fields that user filled. Also caption of the field, that is empty should not be send! - is that possible?

Thank you for your help!
The administrator has disabled public write access.

Re:Send only not empty fields 13 years 6 months ago #11845

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 722
  • Thank you received: 59
Hello,

This can be achieved but it will require some custom scripting. You could try building your user email message through a script that first checks what fields have been filled in and add only the submitted data in the body. The script should be placed in the "Script called before the User Email is sent" field of the "Email scripts" tab.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Send only not empty fields 13 years 4 months ago #12152

  • hominid4
  • hominid4's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
au9879, did you have any luck with this, I'm needing the same thing myself.

Thanks!
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!