Betreff ändern

  • odberlin12681
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

odberlin12681 created the topic: Betreff ändern

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.
#236628
  • Posts: 2483
  • Karma: 86
  • Thank you received: 335

mihaela replied the topic: Betreff ändern

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
#236633
  • odberlin12681
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

odberlin12681 replied the topic: Betreff ändern

Hello @MIHAELA

Everything worked fine. Top service. Thank you
#236635
  • Posts: 2483
  • Karma: 86
  • Thank you received: 335

mihaela replied the topic: Betreff ändern

Great!

Thank you for your kind words.

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

Regards,

Mihaela
#236637
The following user(s) said Thank You: odberlin12681
Moderators: ForumSupporttomeperica
Time to create page: 0.039 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here