JanineB Posted September 9, 2019 Report Share Posted September 9, 2019 Hello. I would like the text in one of the columns in my results table to be red, is this possible? Quote Link to comment Share on other sites More sharing options...
Kurumi Posted September 9, 2019 Report Share Posted September 9, 2019 You may refer to this forum post as a reference: then change it to this code: <style> [class*=cbResultSetHeaderCell]:nth-child(9) a { color: red !important; } </style> a is for the href attribute and color is for the text of it. I hope it helps! JanineB 1 Quote Link to comment Share on other sites More sharing options...
JanineB Posted September 9, 2019 Author Report Share Posted September 9, 2019 Thank you! What if it is the data in that specific cell, like rows? Quote Link to comment Share on other sites More sharing options...
Kurumi Posted September 9, 2019 Report Share Posted September 9, 2019 You could change it to this. <style> td[class*="cbResultSetData"]:nth-of-type(9){ color: red !important; } </style> JanineB 1 Quote Link to comment Share on other sites More sharing options...
JanineB Posted September 9, 2019 Author Report Share Posted September 9, 2019 THANKS! Quote Link to comment Share on other sites More sharing options...
Kurumi Posted February 28, 2023 Report Share Posted February 28, 2023 Hello - Just wanted to share another way to dynamically change the color of the calculated value/field when a condition is met using CSS. You can insert this in the Header: <style> span.cbFormCalculatedField:has(+ input[name="cbParamVirtual1"][value="No"]) { color: #2543be; } span.cbFormCalculatedField:has(+ input[name="cbParamVirtual1"][value="Yes"]) { color: #29be25; } </style> If you have more conditions or other fields, you can use this: <style> span.cbFormCalculatedField:has(+ input[name="cbParamVirtual1"][value="No"]) { color: #2543be; } span.cbFormCalculatedField:has(+ input[name="cbParamVirtual1"][value="Yes"]) { color: #29be25; } span.cbFormCalculatedField:has(+ input[name="InsertRecordFIELDNAME"][value="Inactive"]) { color: #2543be; } span.cbFormCalculatedField:has(+ input[name="InsertRecordFIELDNAME"][value="Active"]) { color: #29be25; } </style> Hope it helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.