Forminator Form control format issue
-
Hi
I have updated the plugin and created a form using your new registration form. But I am not able to format the text boxes according to my website style.
Please see the registarion form here after clicking the “subscribe” button in below link – https://staging.bilingualnews.jp/bnsupporter/
I need the input controls like this
https://testing.bilingualnews.jp/bnsupporter/
How can I make the input controls like this in the form controls. Please help me on this.
The page I need help with: [log in to see the link]
-
I hope you are doing good today.
I see you make some changes on https://testing.bilingualnews.jp/bnsupporter/. Could you give us more details about what you mean by:
“How can I make the input controls like this in the form controls.”Kind Regards,
KrisHi,
In your old forminator version we are able to create html inside the form with input controls. But now input controls are not showing in the latest version. So our functionality all broken. We need to create a Subscriber page where user clicks on subscribe we need to take the user to Registration/Login forms. New updated plugin I have created a registrtion form and login form. But don’t know how to toggle with the login to registration form and Registration form to login form. I am planning to without reloading the page I need to show the login form and registration form using jquery show/hide option.
https://testing.bilingualnews.jp/bnsupporter/
How can I do this through the latest version. Kindly help me to do this. Thanks.
Can you please check this page send me a solution for this. I have integrated the forminator forms Login and Registration. Registration form submission I am getting all data through this filter – “forminator_custom_form_submit_errors” in functions.pho file. But Login submission I am not getting any response in this filter. Can you please check my webpage and help me how to capture the data.
My webpage is – https://testing.bilingualnews.jp/bnsupporter/
Regards,
We need to create a Subscriber page where user clicks on subscribe we need to take the user to Registration/Login forms. New updated plugin I have created a registrtion form and login form. But don’t know how to toggle with the login to registration form and Registration form to login form. I am planning to without reloading the page I need to show the login form and registration form using jquery show/hide option.
I suggest using the checkbox outside the form, then using some JS to toggle the tabs between registration and login https://api.jqueryui.com/tabs/
https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
“Can you please check my webpage and help me how to capture the data.”
I tested the filter on my end and it works fine, however, this hook will trigger after validation, for example, username and password is correct and login would work but it needs a different validation:
https://monosnap.com/file/zfUEyJjAnwnLDUOpt6WbTK8ygqRfeP
The code that I tested:
add_filter('forminator_custom_form_submit_errors', 'my_custom_form_validation', 10, 3); function my_custom_form_validation($submit_errors, $form_id, $field_data_array) { $forms = ['1309', '1020']; // Skip if is not the correct form if( !in_array( $form_id, $forms ) ){ return; } // Force the error just to test the login form $submit_errors[][ 'text-1'] = __( 'Sorry, Something is wrong' ); // Always return $submit_errors return $submit_errors; }
Let us know if you are trying to create any specific validation.
Best Regards
Patrick FreitasHi,
I have written the same filter and submitting my login form and its not coming to this filter and showing some other error. Could you please check this link
https://testing.bilingualnews.jp/bnsupporter/
Click on Subscribe button you will be taken to the Registration page. In that page you can see a link “ログインする”. Click on this will take you to a login page. Enter a username and password and its not showing some error. Its not coming to the filter which you mentioned above. I am printing the Post variables in this filter. But the submission is not come to this filter and showing some other error.
Can you please give me a proper solution for this? Is this using any other filter to get the post data?
Hi @bvk69varghese,
Please note that you need to replace the form ID in the code with the form ID from your form. Can you please share the code that you used to help you better?
Please also share the export of the form using DropBox or Google Drive to take a closer look at this.
Reff: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export
Kind Regards,
Nebu JohnHi,
I have created a page.php and added the 3 forms like below.Those forms are displaying here –
https://testing.bilingualnews.jp/bnsupporter/.
I am just hiding and showing the forms in this page depending upon the link click using jquery. Please see the code samples in the page.php file here –
https://drive.google.com/file/d/1USZZVQDrI8xin8lcBqbLwnt1eV_B2ZOO/view
This is the exported form scripts for the above 3 forms.
12580 Subscribe button display form -https://drive.google.com/file/d/1PHsNDf_G3dwERNX7OI418d4XIDwKawSE/view
12574 Registration form –
https://drive.google.com/file/d/1bwCR_T7AoOvyZwZ34h2s88oK13Cw2fzI/view12573 Login form –
https://drive.google.com/file/d/1-3AupwbZmU_ctg_tDTfj8gfQ4KPdpyJF/viewMy issue is the above registration form submits the request is going to this filter as per your above explanation.
add_filter(‘forminator_custom_form_submit_errors’, ‘my_custom_form_validation’, 10, 3);
But the login form submits its not going to the above filter. Please check my testing page URL and the above form links you can get a clear idea and give me a solution. Please give me a solution clearly. Hope you understand the issue clearly. Please send me a solution. Thanks a lot.
Regards,
Hello @bvk69varghese !
Can you also share the code for the filter’s function my_custom_form_validation?
Kind regards,
PawelHi,
I am sharing the filter functions which I am using in my functions.php. Same function is calling when I submit the registration form. But when I submit the Login form its not calling and not getting the $_POST variables. Please see the filter function here.
https://drive.google.com/file/d/1e39uQ8sCpO0fnKdDjqonZ6lxv_i008Xb/view
Kindly review it and give me a solution for this. Thanks.
Regards,
Hi
Sorry, this is the latest validation code for the forms. Above link is not the latest. Latest validation code is here in the below link.
https://drive.google.com/file/d/1wXCdfg8FMnUmQxJsMr3hFKNNSK2cuS7y/view
-
This reply was modified 2 years, 10 months ago by
bvk69varghese.
Thank you for the code.
It seems there is a misunderstanding on the filter workflow, the forminator_custom_form_submit_errors will validate the fields after Forminator validate the WordPress login, which means at the time the filter should run this:
$current_user = wp_get_current_user(); $response = array(); if ($current_user->ID == '')
That would be true.
I escalated this ticket to our developers to take a look at your code and see if we have any filter to validate it a bit earlier.
Note, this team deal with a more complex situation and it can cause a delay in the response. Thank you for understanding.
Best Regards
Patrick FreitasLet me update this ticket.
Could you let us know if there is any reason for this custom validation?
Looking at the code it is similar to validations that Forminator already does out of the box.
In case it is only for translation you can use the PO/MO files: https://translate.wordpress.org/projects/wp-plugins/forminator/
Some other validation you can make it on fly, for example
if($login_email_address == ''){ if (isset($check) && $check != '' && $check == 'unchecked') { $submit_errors[][ 'reg_password_form'] = 'Please select the terms and conditions.'; $error = 1; }
This would be much easier to include a conditional to Submit button and show the submit only when the field is selected, or either making it required will handle this request.
We also validate the Re-Capcha out of the box, no extra code is required.
Best Regards
Patrick FreitasHi,
We are doing the validations our own because every week we are updating our plugin and all plugin changes we need to do each time when the plugin update. So we are doing the validations and inserting user data/Checking login credentials using our functions.php. Also we want to show the error messages at the top. Also I tried the errors using you registration form. How can I change the https://translate.wordpress.org/projects/wp-plugins/forminator/ file to my theme folder. So that one time correction I can make. Each time plugin updates this file won’t affect the new changes. Can I override the language file or change the path of the plugin language file atleast.
Also I am facing this issue. In our registrtion form (https://testing.bilingualnews.jp/bnsupporter/)if I enter all valid values in the fields and click on submit the form its showing error. From where its capturing these type of errors. To avoid these type of issues I am using custom validation and submission functions in my functions.php. Could you please give me the details of this – which filter I need to use for the registration and login functions. I am afraid to integrate the forminator plugin and daily facing lot of issues and unable to meet the deadline from my client. Kindly help me with this. Thanks.
Regards,
-
This reply was modified 2 years, 10 months ago by
bvk69varghese.
-
This reply was modified 2 years, 10 months ago by
bvk69varghese.
-
This reply was modified 2 years, 10 months ago by
bvk69varghese.
Hi @bvk69varghese,
We are doing the validations our own because every week we are updating our plugin and all plugin changes we need to do each time when the plugin update. So we are doing the validations and inserting user data/Checking login credentials using our functions.php.
We have already pinged our developer regarding this to see if there is any further information that could be provided regarding this.
Please do note that developers works on complex queries and have a slow response time. We’ll soon keep you posted once we get an update.
How can I change the https://translate.wordpress.org/projects/wp-plugins/forminator/ file to my theme folder. So that one time correction I can make. Each time plugin updates this file won’t affect the new changes. Can I override the language file or change the path of the plugin language file atleast.
Forminator uses the default workflow of WordPress ie you’ll need to upload the translated MO file under /wp-content/languages/plugins directory.
You’ll have to use plugins like Loco Translate or Brandas “Text Replacement” module to translate other that the default workflow.
https://wpmudev.com/docs/wpmu-dev-plugins/branda/#text-replacementYou can also use the gettext filter to change the translation via code, for example:
https://wordpress.stackexchange.com/questions/188332/override-default-wordpress-core-translation/188339#188339Also I am facing this issue. In our registrtion form (https://testing.bilingualnews.jp/bnsupporter/)if I enter all valid values in the fields and click on submit the form its showing error.
The error what I’m noticing on your register form is:
The username can not be empty.
Forminators registration form doesn’t support creating accounts without an username, you’ll need to ensure a username is also added. Trying to change such behaviour requires a lot of custom coding.
These validations are checked within the front-user-registration.php file under /wp-content/plugins/forminator/library/modules/custom-forms/front/ folder.
Please advise if I have missed out on anything.
Kind Regards,
NithinHi,
I have fixed the username issue. But after registration its not automatically login the user.At present its not redirecting the user to the login page. Can you recommend a solution for this. If you don’t have any solution please help me this workaround. I have created a blank form with Email,Password and Confirm password for my registration page with this form script.
https://drive.google.com/file/d/14UujSvK-5Iz83fUHYXh6NUCNion0PPzM/view?usp=sharing
But the confirm password is not displaying on the form. How can I do the custom validation and user registration and set the user session to my registered user home page. How can I achieve this? I am able to get the POST request in my filter but after that my code is not working.
add_filter( ‘forminator_custom_form_submit_errors’, ‘filter_forminator_custom_form_submit_errors’, 10, 3 );
How can I validate and do the actions in my code to execute?Regards,
-
This reply was modified 2 years, 10 months ago by
- The topic ‘Forminator Form control format issue’ is closed to new replies.