Appnitro Software Forums » MachForm

Changing Color of 1 Column in Manage Form

(3 posts)
  • Started 1 year ago by johntorre
  • Latest reply from johntorre

  1. johntorre
    Member

    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 1 year ago #
  2. 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>';
    Posted 1 year ago #
  3. johntorre
    Member

    Perfect! Thank you redityo u'r genius!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.