SugarClub
Search
User
Site
Search
User
SugarClub
Search
User
Site
Search
User
Groups & Discussions
Groups & Discussions
Product Forums
Product-focused Q&A, discussions, best practices, fixes, and help
User Groups
Professional, Industry, Language
Get Involved
Learn how to become a Raving Fan
Social Club
Live, interactive, virtual meetups with other Sugar customers and Sugar’s Subject Matter experts!
Leadership Lounge
Adoption
Developers
Visit DevClub, the SugarClub group for Sugar Developers
Developers
DevClub
Mobile Developers
Developer Builds
Supplemental access level required. Inquiries: developers@sugarcrm.com
Additional Groups (Access Required)
Groups that require special access will be displayed here. Contact sugarclub@sugarcrm.com for assistance. Click here to see all groups
Product Information
Product Information
Release Central
Find release-specific content to prepare for your next Sugar update
Documentation & Resources
Looking to expand your Sugar knowledge? Explore our in-depth documentation and other helpful resources!
Product Update Blogs
Updates about each Sugar product
Customer Stories »
Case Studies by SugarCRM
Training & Certification
Training & Certification
Training & Certification Home
Live & On-Demand classes, Quick Videos, Sugar Certifications, and more!
Quick Videos
My SugarU Dashboard »
SugarU News & Updates
Calendar
News
News
Sugar News
SugarCRM.com News »
Dev Blog
SugarOutfitters Blog
Help
Help
Contact Us
Case Portal »
Working with Sugar Support »
SugarClub Help & Instructions
New to SugarClub?
More from Sugar
More from Sugar
DevClub
PartnerClub
Support
SugarOutfitters Marketplace
sugarcrm.com
DevClub
PartnerClub
Support
SugarOutfitters Marketplace
sugarcrm.com
DevClub
Dev Answers & Best Practices
How to Change background color of record at listview in case module ??
Dev Blog
Answers & Best Practices
Developer On-boarding
Dev Tutorials
Developer Events
Event Recaps
Members
Developer Suggestions
Sub-Groups
More
Cancel
New
Click here to join this group and curate your SugarClub experience.
Forums - Thread Details
State
Not Answered
Replies
12 replies
Subscribers
318 subscribers
Views
2346 views
Users
0 members are here
Development Best Practices
Sugar 6.x
Forum Actions
Share
More
Cancel
Related
How to Change background color of record at listview in case module ??
Virat Kohli
over 8 years ago
I want to change background color of record on listview of case module.
if status is New or startdate.
please help !!
Thank you.
Parents
0
vivek s
over 8 years ago
hi bhandari. try this for status new
just find <tr height='20' class='{$_rowColor}S1'> and instead of this do follow
{php}
$color='';
$status_val=$this->_tpl_vars['rowData']['STATUS'];
if(isset($status_val)&&$status_val=='New'){$color='blackcolor';}
{/php}
<tr height='20' class='{$_rowColor}S1' {php}if($color=='blackcolor'){ echo 'style="background:#000"'; } {/php}>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
vivek s
over 8 years ago
hi bhandari. try this for status new
just find <tr height='20' class='{$_rowColor}S1'> and instead of this do follow
{php}
$color='';
$status_val=$this->_tpl_vars['rowData']['STATUS'];
if(isset($status_val)&&$status_val=='New'){$color='blackcolor';}
{/php}
<tr height='20' class='{$_rowColor}S1' {php}if($color=='blackcolor'){ echo 'style="background:#000"'; } {/php}>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data