• Resolved eugene212

    (@eugene212)


    When configuring form email with form’s timepicker fields, the ‘…-hours’ field is populated in the email while ‘…-minutes’ is blank.

    For example, the following Forminator email setting:
    Time: {time-1-hours}:{time-1-minutes}

    produces in the email (if hours are set to 20 and minutes to 00 in the form):
    Time: 20:

    Note: the minutes resolution setting was set to 30 minutes.

    Please advise how minutes can be included into email individually as it is needed for Google Calendar event registration !

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @eugene212

    Sorry to hear you are having this issue.

    Could you please export your form and share using the https://pastebin.com/ so we can take a closer look?

    You can find more about the export feature on:
    https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#import-export

    Best Regards
    Patrick Freitas

    Thread Starter eugene212

    (@eugene212)

    Hi @wpmudevsupport12

    I have simplified the failing form to the bare bones (leaving only a timepicker item) where the ‘minutes’ error can be easily observed when trying to submit the form.

    It fails with minutes values entered/modified by arrows and I could only succeed when manually entering ’00’ into ‘minutes’ field.

    Here is the link to the exported form in pastebin:
    https://pastebin.com/ZewzdhxS

    If it helps, I can place the export file and screenshot on Google Drive.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @eugene212

    Thank you for the form.

    I was able to see the issue, I found we have a reported problem and our developers are already working on a fix.

    Could you please try this workaround?
    https://www.ads-software.com/support/topic/bug-time-field-error-when-required/#post-13363015

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter eugene212

    (@eugene212)

    Hi @wpmudevsupport12

    Yes, this workaround solves the issue, thanks you!

    Hopefully the (proper) solution finds its way into the next Forminator update (this bug seemed to be reported 2 months ago).

    Regards

    Thread Starter eugene212

    (@eugene212)

    Hi @wpmudevsupport12

    Looks like that I spoke too soon – after applying suggested code change, the timepicker component still has issues:
    – if minutes set to 0, then they are not shown when using {time-1-minutes} field in email
    – if hours set to 0, then they are reported as invalid entry when trying submit form

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @eugene212 ,

    I went ahead and tried checking both the scenarios and I noticed that I was not able to replicate the same. I did see the minute’s shortcode displayed 0 when the minutes were set to 0.

    I went ahead and pulled up a test for the second scenario where I was able to replicate the same and this is why I checked the same with the SLS team and they came up with a quick fix. For now, you can replace the wp-content/plugins/forminator/library/fields/time.php with the one I have linked below and that should fix it.

    https://www.dropbox.com/s/pg24503ain5bmg1/time.php?dl=0

    Do let me know if that works for you.

    Thank you,
    Prathamesh Palve

    Thread Starter eugene212

    (@eugene212)

    Hi @wpmudev-support7

    Thanks for the prompt response !

    I have tried new time.php file and, indeed, it fixes the issue with “invalid entry” for 0 hours.

    As for the hours/minutes shortcodes issue (when used in email), unfortunately I still observe it when they are used as separate items (not part of “all_fields”).

    For example, if I use the following email body:

    You have a new website form submission:
    {all_fields}
    ———————–
    Separate items:
    Date: {date-1}
    Hours: {time-1-hours}
    Minutes: {time-1-minutes}
    ———————–
    This message was sent from {site_url}.

    Then received email (on form submission with zero hours/minutes):

    You have a new website form submission:
    Date
    2020-10-12
    Time
    Hour : 0
    Minute : 0
    ———————–
    Separate items:
    Date: 2020-10-12
    Hours:
    Minutes:
    ———————–
    This message was sent from https://test.nuramed.ru.

    And non-zero hours/minutes:

    You have a new website form submission:
    Date
    2020-10-12
    Time
    Hour : 7
    Minute : 30
    ———————–
    Separate items:
    Date: 2020-10-12
    Hours: 7
    Minutes: 30
    ———————–
    This message was sent from https://test.nuramed.ru.

    Please let me know if this can be addressed as time shortcodes are used to setup Google calendar on form submission.

    Regards,

    Eugene

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @eugene212,

    I pulled up a few tests and I see that when I select 0 minutes, it would not get to the email but if I use 00 minutes, it would. I have sent this to the Forminator team to check this further and to see if there can be a quick fix to it and if there is, I would also revert back with the same.

    I estimate this is what you are trying to point to in this case. If there is something else you are pointing to, could you please let us know about it and we would be happy to help you with it too.

    Thank you,
    Prathamesh Palve

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @eugene212,

    We did send this to the Forminator team and we have been able to replicate the same as I mentioned earlier. We already had some more relative unusual behaviour already reported. The fix for the same is in progress and should be up in the future versions of the plugin.

    Kindly keep an eye on the plugins updates for the same. I’m afraid I would not be able to give you an ETA on the same as the release times vary with respect to the checks that the module has to get through as a part of our process.

    Also, Thank you so much for bringing this up and letting us know about it.

    Thank you,
    Prathamesh Palve

    Thread Starter eugene212

    (@eugene212)

    Hi @wpmudev-support7

    Thanks for the information, I have set up my site for automatic Forminator update.

    Meanwhile, I am simply using drop-down lists for hours and minutes functionality – this works well for me and I will probably leave it like this for my website.

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Timepicker minutes field is blank when emailing’ is closed to new replies.