• cojol0511

    (@cojol0511)


    Dear Support Team,

    I am currently working with Contact Form 7 and would like to ask for your guidance on the following points:

    1. 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.
    2. Date field with hours and minutes: Is there a way to make the date field support both date and time (hours and minutes)?
    3. Multiple file uploads: Is it possible to allow users to upload multiple files at once? If yes, could you please share the recommended setup?
    4. 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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • mihc1234

    (@mihc1234)

    Have you tried…. ???

    Here’s a few options for each of your questions.

    1. 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>
    2. 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.
    3. 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?
    4. 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?
    • This reply was modified 9 months ago by mihc1234.
    Thread Starter cojol0511

    (@cojol0511)

    Have you tested ???
    Thank you for your reply. Could you please confirm if I am explaining my questions correctly?

    1. I already tried adding custom JS like this:

    <script type="text/javascript"> let now = new Date(); document.write("Current date and time: " + now); </script>

    However, it does not work in the email that is sent.

    1. The email timestamp is fine, but I would like the submitted email body to clearly show the date and time of submission inside the message.
    2. Regarding multiple files, I tried CTRL + click, but it did not work. Have you tested this?
    3. For file uploads, I would like to show statistics:
      • If no file is uploaded → the email body should include a line like: “No file attached”.
      • If files are uploaded → the email body should display the number of files uploaded.

    Could you please guide me on how to achieve this?

    Thanks again for your support.

    Best regards,

    Plugin Author Takayuki Miyoshi

    (@takayukister)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Support Request for CF7 Configuration’ is closed to new replies.