Unfortunately, conditional formatting between columns is not yet possible with the plugin's built in features.
We've never done a customization like this, so I would also have to explore the hooks and ways to do this. Maybe wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId ) can help. This action is executed after editing action is applied.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
Hello,
Firstly, amazing plugin loving it!
I wish to be able to change the value of a column based on the state of another, for instance:
If COLUMN A is set to VALUE X then set COLUMN B to VALUE Y
I thought I could do it using the 'wpdatatables_filter_column_before_save' filter but this does not seem to be fired when editing on the frontend?
Can you help please?
regards,
Jamie
Hello Jamie.
Unfortunately, conditional formatting between columns is not yet possible with the plugin's built in features.
We've never done a customization like this, so I would also have to explore the hooks and ways to do this. Maybe wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId ) can help. This action is executed after editing action is applied.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
Best regards.
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
wpdatatables_after_frontent_edit_row - worked beautifully!
I debugged it by firing:
wp_die( '<pre>' . var_export( $formdata, true ) . '</pre>');
in the action function so I can see the data in the AJAX response in the console.
Many thanks.
And if any other developer wants to do something similar here is my code:
Hey Jamie, great work!
You're welcome.
Thanks for sharing this, I'm sure someone will have much use of it.
If you have any other questions or issues, please feel free to open a new ticket, and we'll gladly help.
Best regards.
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