• Resolved chrisong81

    (@chrisong81)


    Hi,

    After submission, i need to check the form is valid or invalid.

    Kindly provide me the jQuery to check form is valid or invalid when return.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Md Abdullah Al Arif

    (@faithcoder)

    Hi @chrisong81,

    Greetings! Thanks for contacting us.

    Form submissions go to Entries with proper validation. You can add input field validation in the form (screenshot). There is no procedure to recheck the validation after form submission. Moreover, we’re not authorized to provide custom code support here.

    I appreciate your understanding.

    Best Regards

    Arif

    Thread Starter chrisong81

    (@chrisong81)

    Hi Arif,

    Good day to you.

    Attached is the screenshot the link for your reference: https://drive.google.com/file/d/15jTdfxt3vUkhCJLceo0cwezrkFGJaVZm/view?usp=sharing

    Upon form submission, if the email address “[email protected]” already exists, the error message will be displayed. To achieve this using jQuery, ensure that the form with the ID “metform-22” is valid. After form completion, retrieve the validation status using the following code:

    // Check if the form with ID “metform-22” is valid
    if ($(“#metform-22”).valid()) {
    // Form is valid, proceed with form submission

    // … (your form submission code here)

    // After form completion, retrieve the validation status
    var isFormValid = $(“#metform-22”).valid();

    // Use the value of ‘isFormValid’ as needed
    console.log(“Form validation status:”, isFormValid);
    }

    Kindly advise. I want the metform submit fully completion return valid is true for me.

    Thanks.

    Plugin Support Md Abdullah Al Arif

    (@faithcoder)

    Hi @chrisong81,

    Thanks for sharing the details. I’ve got your point now. No need to use custom jQuery code. MetForm has a unique email validation feature (screenshot), but it’s a Pro feature of MetForm (screenshot).

    According to the WordPress community standard, we aren’t allowed to discuss the PRO features of the plugin here. If there are any questions or concerns, please navigate to the plugin’s details page, and you’ll find the link to contact our support center. Our support team will help you ASAP!

    Regards,
    Arif

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Metform after submission’ is closed to new replies.