• Resolved stevoli

    (@stevoli)


    I’m trying to submit a post using the “post data” block.

    The custom field is _EventStartDate

    I have the value set as: {date-1} {time-1-hours}:{time-1-minutes}{time-1-ampm}

    If the minute field is 00, it always returns empty.

    “2021-01-26 5:pm” for example.

    Here is a copy/paste from the database on a test post.
    meta_id: 2877
    post_id: 500
    meta_key: _EventEndDate
    meta_value: 2021-01-29 2:pm

    If I set it to :15 or :30, it works fine. Single digits also break it, like 2:01 for example, returns “2:1pm”. Is there anyway to specify the format of {time-1-minutes}?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @stevoli,

    Could you provide us with an export of your form so we can have a closer look at your setup?

    You can go to Forminator > Forms panel, click on the Gear icon next to your form and export it from there.
    Upload the export file to any file sharing service like GDrive or Dropbox and share the download link here.

    Cheers,
    Predrag

    Thread Starter stevoli

    (@stevoli)

    https://www.dropbox.com/s/63ztnsjsbij7a7e/forminator-submit-event-form-export.txt?dl=0

    It doesn’t take any special configuration, the timepicker minute always sends an empty string to the custom fields if you pick 00 in the minute dropdown.

    I noticed the email it sends doesn’t even format the time, it sends 3 different lines, hour, minute, am/pm, which is strange.

    If there was a variable that sends the fully formatted time, it would be much easier. I’d like my email to say “This event is scheduled for 2:00pm”, not:

    Start Time
    Hour: 2
    Minute: 0
    AM/PM: pm

    Usually in a form builder the datepicker has an option to select the time as well, so you have a datetimepicker. If the devs are taking suggestions, that would be nice to have.

    • This reply was modified 4 years, 1 month ago by stevoli.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @stevoli

    You are right, in both submitted post and e-mail notification this is happening. I checked and our developers are already aware of it and working on a fix.

    The issue is caused by the way the numbers are validated and this needs adjustment. I see that the fix is on a way so if it passes all the tests successfully it should be included in next release of the plugin.

    Kind regards,
    Adam

    Thread Starter stevoli

    (@stevoli)

    Thanks, I’ll keep an eye out for the update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Timepicker minute return empty string if 00’ is closed to new replies.