i looked at this but i think it would only work for datatables coming from sql db
my data is coming from the GF form connector.
all i want to do is add a new column to add some html, and access the value of another cell on the same row. is there any other way to do this ? what about the filter i mentioned before - could that be used?
You can also try using the "wpdatatables_custom_prepare_output_data" hook, where you can use the data that will fill the table. There's also the "wpdatatables_filter_server_side_data" hook which can be found on lines 621 and 623 of this file: wp-content/plugins/wdt-gravity-integration/wdt-gravity-integration.php
For non-server-side tables, you can try using the "wpdatatables_filter_cell_val" hook but you would only have the value and the tableid parameters in there.
Unfortunately, the developer's documentation on how they are used is still being created so it's not ready yet. We don't have any working examples for what you're looking for to achieve, otherwise I would've shared it with you already.
Hi
I need to add a new column that contains a link, to a url which is specific to each row
I have installed master detail add on and i can create a link to a particular page / post. If i can just alter the URL by adding
/{entryID}
to the end of the URL then i would be very happy. Is there a way to do this?
Alternatively, would this be achievable using wpdatatables_filter_cell_val ?
Hello adnaan.
You could maybe use the CONCAT function to achieve this.
Check it out, we've done something similar in the video shared above. If you need some further assistance, please let me know.
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
hi
thank you so much for replying.
i looked at this but i think it would only work for datatables coming from sql db
my data is coming from the GF form connector.
all i want to do is add a new column to add some html, and access the value of another cell on the same row. is there any other way to do this ? what about the filter i mentioned before - could that be used?
thanks again for your help!
here is a jquery script to add new content to the last column of a wpdatatable and it can take values from other fields to use
https://pastebin.com/VhRMLANS
Hello Adnaan.
Unfortunately, the Gravity Forms-based tables are not modifiable, so you wouldn't be able to apply this to them.
The query for fetching the data from Gravity is complex, and it can't be modified, so what you're looking for can't be achieved with wpDataTables.
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
it can be achieved with jquery. please see attached pastebin in my last comment.
Thank you for pointing that out, Adnaan.
You can also try using the "wpdatatables_custom_prepare_output_data" hook, where you can use the data that will fill the table. There's also the "wpdatatables_filter_server_side_data" hook which can be found on lines 621 and 623 of this file: wp-content/plugins/wdt-gravity-integration/wdt-gravity-integration.php
For non-server-side tables, you can try using the "wpdatatables_filter_cell_val" hook but you would only have the value and the tableid parameters in there.
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
thanks aleksander
do you have any documentation on how to use these filters ??
Hi again Adnaan.
Filters and hooks can be found on these pages:
https://wpdatatables.com/documentation/information-for-developers/filters/
https://wpdatatables.com/documentation/information-for-developers/hooks/
Unfortunately, the developer's documentation on how they are used is still being created so it's not ready yet. We don't have any working examples for what you're looking for to achieve, otherwise I would've shared it with you already.
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