• Hi Peter,
    I have a couple of questions.

    1) when I insert a date in my form and I submit, the date is recorded as: 30/11/-0001. I have to insert again to have the correct formatting. Have you any idea how to solve thi issue?
    2) Is there any possibility to add funtions after the form submission? Indeed, it would be useful for me to automatically send an email to my coworkers anytime the database is updated.
    Any suggestion?
    Thanks a lot in advance for your precious work
    Daniele

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Danielle,

    1) Where/when do you get this error? In the back-end or front-end. If on the front-end, which shortcode are you using?

    2) There is an undocumented feature you could use for this. If you add a javascript function “pre_submit_form()” it will be executed before the submit. In your case you’ll need to perform a validation, otherwise you’ll get all failed submits in your mailbox as well. I use this feature myself to perform additional tasks.

    Does this help?
    Peter

    Thread Starter davitabile

    (@davitabile)

    Hi Peter,
    1) I have this issue in the backend, I did not try in the front end

    2) Well… let’s say I’m not so skilled, but I’ll try to find out. Actually I need to send a very simple and generic email like “Project ‘name of the project’ has been updated”
    Can I use code manger to insert the JavaScript function?
    Thanks

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Daniele,

    1) This works for me. I cannot reproduce this error. What is the data type of the column? And what date and time format are you using?

    2) Yes, you can use the Code Manager for that purpose. But you will need a URL where you can drop your email. Or does anyone have a better idea…?

    Thanks,
    Peter

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date insertion + sending email after submission’ is closed to new replies.