BFuchs Posted November 29, 2019 Report Share Posted November 29, 2019 Hi, Would like to know how do I change formatting of a calculated field in datapage? Tried the following in header section but not working. <style> .cbFormCalculatedField { color: blue; font-size: 20px; font-weight: 1000; } </style> Thanks Quote Link to comment Share on other sites More sharing options...
1 sandy159 Posted November 15, 2022 Report Share Posted November 15, 2022 Hi @Hiperf, You may want to select a specific column. Refer to the forum post: Change the number within the () depending on which column you want to change color. Add this in the Header of the Results Page Configuration, make sure to disable HTML Editor before pasting the code. <style> td[class*="cbResultSetData"]:nth-of-type(9){ color: red !important; } </style> Hiperf 1 Quote Link to comment Share on other sites More sharing options...
0 Vitalikssssss Posted November 29, 2019 Report Share Posted November 29, 2019 Hi @BFuchs, Try using complex css selectors as per below: <style> td.cbResultSetData.cbResultSetTableCellNumberDate.cbResultSetCalculatedField { color: blue; font-size: 20px; font-weight: 1000; } </style> Hope this helps. Regards, vitalikssssss Quote Link to comment Share on other sites More sharing options...
0 BFuchs Posted November 29, 2019 Author Report Share Posted November 29, 2019 9 hours ago, Vitalikssssss said: Hi @BFuchs, Try using complex css selectors as per below: <style> td.cbResultSetData.cbResultSetTableCellNumberDate.cbResultSetCalculatedField { color: blue; font-size: 20px; font-weight: 1000; } </style> Hope this helps. Regards, vitalikssssss Quote Link to comment Share on other sites More sharing options...
0 BFuchs Posted November 29, 2019 Author Report Share Posted November 29, 2019 Hi Vitalikssssss, Tried that too, nothing changed. Thanks, Ben Quote Link to comment Share on other sites More sharing options...
0 BFuchs Posted December 1, 2019 Author Report Share Posted December 1, 2019 On 11/29/2019 at 12:59 PM, BFuchs said: Hi Vitalikssssss, The following seems to be working, wondering if this is the correct way...? span.cbFormData.cbFormCalculatedField{ color: red; font-size: 20px; font-weight: 1000; } Thanks, Ben Quote Link to comment Share on other sites More sharing options...
0 Vitalikssssss Posted December 2, 2019 Report Share Posted December 2, 2019 On 11/29/2019 at 7:59 PM, BFuchs said: Hi Vitalikssssss, Tried that too, nothing changed. Thanks, Ben Hi @BFuchs Did you place the code into Datapage Header? HTML editor was disabled? This code is designed for Tabular report Datapage. Send me a URL of the web-page via private message, so I could take a look. Regards, vitalikssssss Quote Link to comment Share on other sites More sharing options...
0 Hiperf Posted November 14, 2022 Report Share Posted November 14, 2022 It worked for me, but how do you color only a single column? Quote Link to comment Share on other sites More sharing options...
0 Hiperf Posted November 15, 2022 Report Share Posted November 15, 2022 Works! Thanks sandy! sandy159 1 Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted September 29, 2023 Report Share Posted September 29, 2023 Hi - Just an update, for dynamically changing the font color of field values based on a condition - you can use this solution/CSS: https://howto.caspio.com/tech-tips-and-articles/dynamically-changing-colors-of-values/ Quote Link to comment Share on other sites More sharing options...
0 Queso Posted September 30, 2023 Report Share Posted September 30, 2023 Hello - You may also want to check on this another forum post where they are trying to make the Calculated Field bold as well as changing the background color: Quote Link to comment Share on other sites More sharing options...
Question
BFuchs
Hi,
Would like to know how do I change formatting of a calculated field in datapage?
Tried the following in header section but not working.
Thanks
Link to comment
Share on other sites
10 answers to this question
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.