Home Forums Plugin Support WP User Frontend Pro Validate form fields

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45586

    Claudia
    Member
    Post count: 17

    How I can validate the form fields?
    For example, phone is only numbers and max 10 characters?

    An the other question…
    How I can make a “warning” about specific fields that are in error?

    Thanks you

    #45634

    towhid
    Participant
    Post count: 4505

    Hello Claudia,

    We do not have this feature right now to enter the phone number in a field. Numeric custom field feature will be available in our next release.

    Can you make the question more clear about “warning” about specific fields that are in error?

    Thanks

    #46040

    Claudia
    Member
    Post count: 17

    Ok, I look forward to validate the fields in the next version. When would it be?

    On the question of error, I mean warnings like: “Warning: the ‘name' field is required”

    #46041

    Claudia
    Member
    Post count: 17

    Another question: you can tell me where (in the .php plugins) fields are validated? To do it. For example, the “email” field is validating it correctly. So, please, can you tell me where .php file validation plugins that you gave?

    #46090

    towhid
    Participant
    Post count: 4505

    Hello Claudia,

    Please open plugins/wedevs-wp-user-frontend/assets/js/frontend-form.js
    and find below the line of code:
    ('<div class="wpuf-errors">' + wpuf_frontend.error_message + '</div>');

    Also open plugins/wedevs-wp-user-frontend/wpuf.php
    and find the below line of code:
    'error_message' => __( 'Please fix the errors to proceed', 'wpuf' ),

    Above two lines are responsible for provide an alert if any field is empty(but required are given in backend)

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Validate form fields’ is closed to new replies.