Estoy tratando de crear una tabla nueva eligiendo como Tipo de datos de Fuente un Formulario de Forminator, al momento de ir al apartado desplegable para hacer la elección solo me muestra 10 de los 14 formularios que tengo y no puedo ver los demás, como puedo hacer para ver todos mis formularios?
Hice una prueba creando un nuevo formulario, ese nuevo formulario si me lo deja ver, pero me desaparece el ultimo que tenia antes de añadir el nuevo.
Agradezco su atención y quedo en espera de sus comentarios.
For future reference, please translate your comments into English.
Sorry for inconvenience,
Yes, you are right, there is an issue and this should not be limited.
For getting all form types we are using Forminator API and we found that methods that should return all forms, quizzes, or polls actually returning only 10.
We are in cooperation with devs in the Formiantor team and they are aware of this and it should be fixed in one of the next updates of the Formiantor plugin.
What you can do until that is: First to change some code in Formainator API class where issues are found:
In file wp-content/plugins/forminator/library/class-api.php around line 39
you will find this
public static function get_forms( $form_ids = null, $page = 1, $per_page = 10, $status = '' ) {
and what you need to do is to replace 10 with -1 like this
public static function get_forms( $form_ids = null, $page = 1, $per_page = -1, $status = '' ) {
If you are using quizzes and polls as well you can update these methods as well
wp-content/plugins/forminator/library/class-api.php around line 1117
public static function get_polls( $poll_ids = null, $page = 1, $per_page = -1, $status = '' ) {
and for polls
in file wp-content/plugins/forminator/library/class-api.php around line 1374
public static function get_quizzes( $quiz_ids = null, $page = 1, $per_page = -1, $status = '' ) {
The second option is to update those methods in our integration plugin in file wp-content/plugins/wdt-forminator-integration/wdt-forminator-integration.php around line 160
you will find this
public static function getForminatorFormsArr($formType) {
$formsArray = [];
switch ($formType) {
case 'forms':
$formsArray = Forminator_API::get_forms();
break;
case 'polls':
$formsArray = Forminator_API::get_polls();
break;
case 'quizzes':
$formsArray = Forminator_API::get_quizzes();
break;
}
return $formsArray;
}
and you should replace with this
public static function getForminatorFormsArr($formType) {
$formsArray = [];
switch ($formType) {
case 'forms':
$formsArray = Forminator_API::get_forms(null,1,-1,'');
break;
case 'polls':
$formsArray = Forminator_API::get_polls(null,1,-1,'');
break;
case 'quizzes':
$formsArray = Forminator_API::get_quizzes(null,1,-1,'');
break;
}
return $formsArray;
}
Estoy tratando de crear una tabla nueva eligiendo como Tipo de datos de Fuente un Formulario de Forminator, al momento de ir al apartado desplegable para hacer la elección solo me muestra 10 de los 14 formularios que tengo y no puedo ver los demás, como puedo hacer para ver todos mis formularios?
Hice una prueba creando un nuevo formulario, ese nuevo formulario si me lo deja ver, pero me desaparece el ultimo que tenia antes de añadir el nuevo.
Agradezco su atención y quedo en espera de sus comentarios.
Hello Ricardo.
Thank you for your purchase.
For future reference, please translate your comments into English.
Sorry for inconvenience,
Yes, you are right, there is an issue and this should not be limited.
For getting all form types we are using Forminator API and we found that methods that should return all forms, quizzes, or polls actually returning only 10.
We are in cooperation with devs in the Formiantor team and they are aware of this and it should be fixed in one of the next updates of the Formiantor plugin.
What you can do until that is:
First to change some code in Formainator API class where issues are found:
In file wp-content/plugins/forminator/library/class-api.php around line 39
you will find this
and what you need to do is to replace 10 with -1 like this
If you are using quizzes and polls as well you can update these methods as well
wp-content/plugins/forminator/library/class-api.php around line 1117
and for polls
in file wp-content/plugins/forminator/library/class-api.php around line 1374
The second option is to update those methods in our integration plugin in file wp-content/plugins/wdt-forminator-integration/wdt-forminator-integration.php around line 160
you will find this
and you should replace with this
We'll see that this is fixed in our updates.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables