travelI'm on Holidays until the 21th august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 21 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Contact form '{fieldslist}'

Contact form '{fieldslist}' 11 Jun 2020 15:06 #56778

Hi

"but if you use the textarea in the form options, where you must load '{fieldslist}' , you can wrap arround any html code and do what you want"

How the '{fieldslist}' field works. Please give an example.
I did something like that.
<table width="50%">
  <tr>
    <td bgcolor="#009966">Witaj dostałeś wiadomość :) </td>
  </tr>
  <tr>
    <td bgcolor="#009966">Od:  {name}</td>
  </tr>
  <tr>
    <td bgcolor="#009966">Email: {E-mail}</td>
  </tr>
  <tr>
    <td bgcolor="#009966">Temat: {Subject}</td>
  </tr>
  <tr>
    <td bgcolor="#009966">Wiadomość: {message}</td>
  </tr>
  <tr>
    <td bgcolor="#009966">&nbsp;</td>
  </tr>
</table>
And I received a message with two views. In the first position, the table but instead of the message only the names {fieldslist}
And below the message without styling
What did I do wrong?

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 07:24 #56783

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 23185
  • Karma: 427
  • Thank you received: 2918
Hi
the tags {name} and others that you are using do not work. Only the tag {fieldslist} is working
The problem is that you can add many custom fields in your form and for now the ability to get the individual fields in your message is not implemented

You can use something like
<div style="...">{fieldslist}</div>[code] I add this on my (long ?) list to check how I can do that to use individual tags CEd[code]<div style="...">{fieldslist}</div> I add this on my (long ?) list to check how I can do that to use individual tags CEd[code]

I add this on my (long ?) list to check how I can do that to use individual tags
CEd
Joomlack Webmaster and Developer
The following user(s) said Thank You: Kleszewski

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 07:35 #56785

Hi
thank you for your explanation.It is a pity, because I got used to another situation in the components "contact" I enter the name of the field in brackets {} and it returns the result. Very useful

But this html result, which I receive by email, is formatted somewhere :). Could I find out what file this is happening in?

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 07:38 #56786

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 23185
  • Karma: 427
  • Thank you received: 2918
the html is coded directly in the PHP file (helper) in the plugin "pagebuilderck" >> "contact2"
I understand your request. For information, this addon was not designed to replace existing form extensions, it was just designed to allow a fast and easy way to create a contact form.

As said, this is added to my list, I will check in a near future how I can improve that
Joomlack Webmaster and Developer

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 07:46 #56787

I understand you perfectly. Everything works great, it's a great addition. But I want to get only one simple effect. I want to change the appearance of the information received from the contact form. Nothing more. :) . Best regards and have a nice day ;)

Please Log in to join the conversation.

Last edit: by Kleszewski.

Contact form '{fieldslist}' 13 Jun 2020 08:08 #56789

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 23185
  • Karma: 427
  • Thank you received: 2918
you can try to add a <style> tag and use the CSS selector to style the form. It will be added in the code of the email and this shall work
Joomlack Webmaster and Developer

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 08:11 #56790

thank you very much, I will think about how to do it and try to do it. Maybe I will succeed

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 08:19 #56791

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 23185
  • Karma: 427
  • Thank you received: 2918
for info the rows are rendered like this
<p><h4>LABEL</h4> <span>VALUE</span></p>
if it can help you to manage it using CSS :)
Joomlack Webmaster and Developer

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 08:43 #56792

If I think right then it is processed here
$body .= '<p><h4>' . JText::_($labels[$k]) . ' :</h4> <span>' . htmlspecialchars($value) . '</span></p>';
And now between these <span> </span> tags can I put any css code and it will change the appearance of the received message?

Please Log in to join the conversation.

Contact form '{fieldslist}' 13 Jun 2020 08:51 #56793

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 23185
  • Karma: 427
  • Thank you received: 2918
yes but this will be erased with the next update ...
Joomlack Webmaster and Developer

Please Log in to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.259 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 172 guests and no members online