• Resolved Filipe Costa

    (@filipecostacom)


    Hi there!

    On one of the latest updates, something broke the time field. If i set it as a required field i always get an error when submitting the form!

    Could you please check and fix this!?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @filipecostacom,

    That’s odd behaviour. I tested on my system but I’m not able to replicate the issue. I could submit the form without any issue for the required time fields.

    It seems like the above page link you have shared is password-protected, so I couldn’t check the existing form.

    Is it possible to share an export of your form, so that I could import your form and test specifically to see what exactly is causing the issue?

    You can use Dropbox or Google to share the export file. You can send us the download link privately by using our contact form here:
    https://premium.wpmudev.org/contact/#i-have-a-different-question

    Send in:

    Subject: “Attn: Nithin”
    – Link to download the export file
    – Download link to the export file
    – Link back to this thread for reference

    Looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter Filipe Costa

    (@filipecostacom)

    Hi and thanks!

    Just created a new form with contact form template. Then deleted the email address field to be simpler and added a timepicker field marked required with a simple required message. Saved, published and previewed and i got the same error!

    Here is the form code (i just deleted the email address to receive notifications):
    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-1511347711918-1669","type":"name","cols":12,"required":"true","field_label":"First Name","placeholder":"E.g. John","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","conditions":[],"wrapper_id":"wrapper-1511347711918-1669"},{"id":"phone-1","element_id":"phone-1","form_id":"wrapper-1311247712118-1194","type":"phone","cols":12,"required":false,"field_label":"Phone Number","placeholder":"E.g. +1 3004005000","validation":"false","phone_validation_type":"standard","validation_text":"","conditions":[],"wrapper_id":"wrapper-1311247712118-1194"},{"id":"textarea-1","element_id":"textarea-1","form_id":"wrapper-1988247712118-9871","type":"textarea","cols":12,"required":false,"field_label":"Message","placeholder":"Enter your message...","input_type":"paragraph","limit":"180","limit_type":"characters","conditions":[],"wrapper_id":"wrapper-1988247712118-9871"},{"id":"time-1","element_id":"time-1","form_id":"wrapper-9684-5906","type":"time","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-9684-5906","field_type":"input","time_type":"twelve","field_label":"","hh_label":"Hours","hh_placeholder":"E.g. 08","mm_label":"Minutes","mm_placeholder":"E.g. 00","required":true,"required_message":"Obrigatorio"}],"settings":{"formName":"Teste","pagination-header":"nav","version":"1.13.3","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"form-type":"default","submission-behaviour":"behaviour-thankyou","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Send Message","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"no_expire","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","form_status":"publish"},"client_id":null,"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"ADD_EMAIL_ADDRESS_HERE","email-subject":"New Form Entry #{submission_id} for {form_name}","email-editor":"You have a new website form submission: <br\/> {all_fields} <br\/>---<br\/> This message was sent from {site_url}.","email-attachment":"true"}]},"status":"publish","version":"1.13.3"}

    • This reply was modified 4 years, 4 months ago by Filipe Costa. Reason: delete email address to receive notifications
    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @filipecostacom

    It seems that this is reported already to our developer who will provide a fix in an upcoming release. Meanwhile, you can remove the “required” option from timepicker.

    Warm regards,
    Dimitris

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @filipecostacom

    You can try the following workaround for the time being.
    Edit the wp-content/plugins/forminator/library/fields/time.php file
    and in line #646 replace
    if ( ! empty( $data ) && ( empty( $data['minutes'] ) || 0 !== (int) $data['minutes'] ) ) {
    with
    if ( ! empty( $data ) && ! strlen( $data['minutes'] ) ) {

    Warm regards,
    Dimitris

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug: Time field error when required’ is closed to new replies.