Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Due to public holidays and vacations, longer response times can be expected for inquiries in the forum between December 20, 2024 and Janaury 8, 2025.

Better Separation between Fields in Email

More
10 years 8 months ago - 10 years 8 months ago #534 by Josh
Right now it feels a bit cluttered in a email form, it would be nice if either an addition br tag could insert between each field or if CSS could be used to better separate the fields.

Here is a sample of it feeling cluttered:
"Do you rent or own your home? : Rent
How long have you lived there? : 12 Years
Do you have a fenced yard? : Semi, in the backyard but not the front
Type and height of fence? : Wood, 7 Feet High"

It would be much nicer to have it say:

"Do you rent or own your home? : Rent

How long have you lived there? : 12 Years

Do you have a fenced yard? : Semi, in the backyard but not the front

Type and height of fence? : Wood, 7 Feet High"

It would be really cool if the format could be exactly like how it displays on the site! :cheer: It looks very professional on the site in terms of readability and use of space.
Last edit: 10 years 8 months ago by Josh.

More
10 years 7 months ago #535 by Administrator AV
Replied by Administrator AV on topic Better Separation between Fields in Email
Hi Josh,

thanks for your suggestions. I think you are right and I will add a topic to my to-do-list about making e-mail layout more flexible and controllable by form settings. I think it is quite realistic that this feature will be implemented in the next release of Visforms for I think it is not so much work. (But it can still take some weeks before a release a new version).

For now you can just change the code itself

The e-mails are generated in components/com_visforms/model/visform.php somewhere about line 770

You would have to change the

"<br />\n"

in

$mailBody = $mailBody.$field->label . " : " . $fieldValue . "<br />\n";

into something like

"<br /><br />\n\n"

I didn't test it but I think it will work.

You will find that line two time (for the result mail and the recipient mail.)

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
The following user(s) said Thank You: Josh

More
10 years 7 months ago #536 by Josh
Thank you very much for putting this into consideration! :cheer: If I could put in CSS and wrap the email in a div container (so that it has a unique selector) that would be really cool. Right now I'm not very skilled with PHP, but could figure out the mod you send. :)

More
10 years 7 months ago #539 by Administrator AV
Replied by Administrator AV on topic Better Separation between Fields in Email
Hi Josh,

because it is possible to turn HTML in email view off, this is much more complex. I would have to find a solution that works with all email client setting nicely and would allow you to configure the css as well...

So, if I get a good idea how to implement this smoothly I will consider it but at the moment it looks to me, as if that would be much more work

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum