TOPIC:

Form number from script and modification 1 month 12 hours ago #280697

  • Topic Author
  • Tohm
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 42
  • Thanks: 0
Hi
I'm using breezingform with contentbuilder.
When submitting the form, a number (from now date) is saved.
It's a field with an initialization script like this:
function ff_numquote_init(element, condition)
{
    switch (condition) {
        case 'formentry':
var date = new Date();
const last2 = new Date().getFullYear().toString().substring(2);
const last2Num = Number(last2);
	var current_date = date.getDate()+""+(date.getMonth()+1)+""+last2Num;
	var current_time = date.getHours()+""+date.getMinutes();
	var date_time = current_date+"-"+current_time;	
ff_getElementByName('numquote').value = date_time;
            break;
        default:;
    } // switch
} // ff_numquote_init

The issue is that when modifiyng the datas from contenbuilder view, the number isn't updated as it takes the first saved value
How can I do to overwrite the first from numquote value?
I would like it to be updated with the date and time it is modified?

Regards
Thomas

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

Form number from script and modification 2 weeks 5 days ago #280946

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 778
Hi,

question: did you test with checked pageentry?

Regards,
Tihana

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

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

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

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