I am currently working with Contact Form 7 and would like to ask for your guidance on the following points:
Email content with date/time: I would like to include the current date and time (e.g., “today”) in the email content when a message is submitted. However, I do not want this field to appear on the form for users to fill in.
Date field with hours and minutes: Is there a way to make the date field support both date and time (hours and minutes)?
Multiple file uploads: Is it possible to allow users to upload multiple files at once? If yes, could you please share the recommended setup?
No file selected message: In case no file is attached, I would like the email body to display a message such as “No file selected” instead of leaving the field blank. How can this be implemented?
Thank you very much for your support. I look forward to your advice.
Best regards,
The page I need help with: [log in to see the link]
Date and Time — the mail tab on the CF7 plugin interface allows you to add html formatting. I wonder if other things might work too… so, have you tried adding this to the mail response for the form in question?
<script type=”text/javascript”> let now = new Date(); document.write(“Current date and time: ” + now); </script>
Maybe the above suggestion will also work to answer this question? Or perhaps the question isn’t clear. If you have the system setup so that the data from the form is emailed RIGHT AFTER the form is submitted, then is the date/time stamp on the email good enough ?? if you’re using gmail, you could have a script at the ready to populate a spreadsheet with the contents of those incoming emails, including the date-time stamp of it’s arrival. Would that work? (it’s a longer answer and involves systemic steps on your part as an admin.
Multiple File uploads: Have you tried... using the CTRL key plus a click on multiple documents to select more than one? Do tell, what happened?
No file selected info… Again, back to the mail tab in the CF7 plugin interface. Since I don’t have any forms that require document uploads, i can’t say, but for all other fields you can add the field tag to the email template so that whatever is entered by the visitor to your form will appear when the form is submitted… My questions is, have you tried adding the tag for the file upload to see if it poplulates either the name of the files attached or some other message (nothing selected, or blank, or just an empty field?