I has 2 tables in the same page. They are related.
The table_1, a regular table and I put any register without any issue.
The second one has a field related with the id of table one. So one of the field is type simple-value selectbox. When I am in the page with those table and put a register in the table_1 it should be appear as an option in new/edit form in the field of the table_2, but it doesn't. I suppose that is because the new / edit form of the table_2 is already loaded. So I have to refresh the page to the form refresh as well.
The question is if the is a way to refresh the new / edit form of the tables without refresh the page? Ther is any hook that we could use or if I can add on the option form what I want by my self (javascript etc)
At the moment, there are no buttons or options within the plugin that would refresh the table on click, or after a change has been made. You could use our hooks and create a script that would do this, but this is custom work, and we cannot provide support for it. I believe wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId ) hook would work well for this.
Also, every editable table has a auto-refresh timer, so you can enter the interval in seconds, after which the table will automatically refresh itself.
I has 2 tables in the same page. They are related.
The table_1, a regular table and I put any register without any issue.
The second one has a field related with the id of table one. So one of the field is type simple-value selectbox.
When I am in the page with those table and put a register in the table_1 it should be appear as an option in new/edit form in the field of the table_2, but it doesn't. I suppose that is because the new / edit form of the table_2 is already loaded. So I have to refresh the page to the form refresh as well.
The question is if the is a way to refresh the new / edit form of the tables without refresh the page? Ther is any hook that we could use or if I can add on the option form what I want by my self (javascript etc)
Regards
Hello Alejandro.
At the moment, there are no buttons or options within the plugin that would refresh the table on click, or after a change has been made. You could use our hooks and create a script that would do this, but this is custom work, and we cannot provide support for it. I believe wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId ) hook would work well for this.
Also, every editable table has a auto-refresh timer, so you can enter the interval in seconds, after which the table will automatically refresh itself.
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