This topic contains 4 reply and 2 voices, and was last updated by towhid 4 years, 2 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
May 29, 2015 at 10:47 am 45586
towhid 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
May 30, 2015 at 12:18 pm 45634
towhid towhid

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

June 3, 2015 at 6:51 pm 46040
Claudia Claudia

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”

June 3, 2015 at 7:04 pm 46041
Claudia Claudia

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?

June 4, 2015 at 12:26 pm 46090
towhid towhid

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 4 Posts - 1 through 4 (of 4 total)