Hi there.
I have a table where the first column shows the Post Title Link.
<div class="tb-field" data-toolset-blocks-field="1" data-last-update="1.4">[tb-dynamic provider="__current_post" post="current" source="post-title-with-link" force-string='first' ]</div>
How can I modify this code to change the cell color based on the value of a custom field (wpcf-payment-data-status)?
If you can provide the code, that would be great!!
Also, I'm using the Blocks interface, so how would I enter the code you provide?
Thanks in advance.
Hi Amin,
Thank you for contacting us and I'd be happy to assist.
You can achieve this in the Blocks editor, by using the conditional blocks.
In your target cell, you can include the conditional blocks for each possible value of the custom field "wpcf-payment-data-status".
This will allow you to style the contents of those blocks independently, for each value's case.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar