This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Changing Color of 1 Column in Manage Form
Started 15 years ago by johntorre | 3 posts |
-
Hi guys! i just want to ask if how to change or is it possible to change the color of 1 column from manage entries form?
for example:
my form number is 4 and i have drop down element_6 with value TRUE and FALSE
assume that the element_6(drop down value selected=TRUE)
when viewing it in admin panel manage entries. the column element_6 with the value TRUE
the color of TRUE instead of default black. change it to RED. and if FALSE change it to BLUE? How to do that guys...Posted 15 years ago # -
First you need identify column number in manage entries list for your drop down, let say you have your drop down on column number 5.
Then Edit "manage_entries.php" file and go to around line 459 and you will see this :echo '<td><div>'.$column_data.'</div></td>';
replace with these code
if ($key == 5 && $form_id == 4) { if ($column_data == 'true') $row_color = ' style="color:#cc0000" '; else $row_color = ' style="color:#0000ff" '; } else { $row_color = ' style="color:#000000" '; } echo '<td><div'.$row_color.'>'.$column_data.'</div></td>';
MachForm Support
Posted 15 years ago # -
Perfect! Thank you redityo u'r genius!
Posted 15 years ago #
Reply
You must log in to post.