Thread Starter
enkia
(@enkia)
Thread Starter
enkia
(@enkia)
The date didn’t change today so the javascript solution didn’t work.
Can you explain a bit more what you are trying to do? Do you want the PDF date field to show the date of the form submission or the current date (when PDF file is opened)? Or user specified date perhaps?
User specified date: https://contactform7.com/date-field/
Submission date: https://contactform7.com/hidden-field/ + some javascript on the web page possibly? Or a special CSS class combined with a JS library.
The link you sent seems to describe how to have the PDF field populate with the current date (of when the PDF file is opened). I haven’t tried it myself but it should work.
Thread Starter
enkia
(@enkia)
Submission date: https://contactform7.com/hidden-field/ + some javascript on the web page possibly? Or a special CSS class combined with a JS library.
This worked perfectly. Not quite sure why I hadn’t thought of such a simple solution!
There is actually a better way to do what you want with these two plugins:
https://ww.wp.xz.cn/plugins/contact-form-7-dynamic-text-extension/
https://ww.wp.xz.cn/plugins/shortcode-for-current-date/
Just use this tag in your contact form:
[dynamictext date readonly “current_date”]
and map field ‘date’ to whatever PDF field you need…