TOPIC:

Betreff ändern 3 years 2 weeks ago #236628

  • Topic Author
  • odberlin12681
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Hallo zusammen,
ich suche nach einer Möglichkeit den Betreff so zu ändern, dass statt eines Textes das Absendedatum inkl. Zeit angezeigt wird. Mit der Standard-Methode ist dies nicht möglich da der Code ausgegeben wird, statt das Datum.
Wie könnte ich das realisieren?
Vielen Dank an Euch schon mal im voraus.

Please Log in or Create an account to join the conversation.

Betreff ändern 3 years 2 weeks ago #236633

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 416
Hello,

I hope that we can continue in English since we don't have a German-speaking support staff member at the moment.

There is a way to achieve what you want.

You have to create an additional field in your form which you fill in with current date and time and then put as subject the following:
{datefieldname}

Here are instructions on how to fill in the field with current date and time.

Please go to the Advanced properties of that field for filling in the date.
Then in the Initscript section set Type to Custom and check the "Form Entry" checkbox.

In the code area below put the following code:
function ff_datefieldname_init(element, condition)
{
 setInterval(caltime, 500);
} // ff_datefieldname_init

function caltime() {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
var hours = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();

ff_getElementByName("datefieldname").value = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
}
NOTE: In order for this to work on your form please replace bothe instances of datefieldname with the Name of that fate field.

Also, submission time might be a bit late since it takes Begin Submit time and not End Submit.

Another way to achieve what you want, which might be better in my opinion if you don't have a custom email template is to do similar as explained here crosstec.org/en/support/online-documenta...-name-and-email.html . The difference is that you would set as subject something like this:
date('Y-m-d h:i:s');

Let me know whether this solution is working for you.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

Betreff ändern 3 years 2 weeks ago #236635

  • Topic Author
  • odberlin12681
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Hello @MIHAELA

Everything worked fine. Top service. Thank you

Please Log in or Create an account to join the conversation.

Betreff ändern 3 years 2 weeks ago #236637

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 416
Great!

Thank you for your kind words.

I'm glad I've helped and that this is working for you. :)

Regards,

Mihaela
The following user(s) said Thank You: odberlin12681

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!