Hide Data and Keep Caption of a field

Hi,

am in sage CRM version i7

i have a problem here, i added some création code like this :

Caption = '<hr size="2" width="500%" noshade color=grey><b><font color=blue>Bank Account Information :</b><br><hr size="2" width="500%" noshade color=grey></tr><tr>';

it will replace my caption with an Hr and some text , but the problem that the field has been displayed in the top without caption,

but i want to hide the data field and keep the caption , because i wanna divide my screen (summary screen) by using this method

here a capture of what i have

and thats the result

thanks for help,

Parents
  • 0

    Hello, any solution found  for this?

  • 0 in reply to Jerome deH.

    I can't see the images of the original post, but if you want to add a divider line to a screen I do the following

    Create a 1 character text field (e.g. xxxx_Blank01)

    Add the field to the screen on a new line and 5 columns wide

    In the CreateScript put in the following and edit the bit towards the end to be the caption you want

    var strText = "";
    strText += "<BR><TABLE BGCOLOR='#6795C3' WIDTH=100%><TR><TD></TD></TR></TABLE>";
    strText += "<font style='color:#003D72;text-decoration:none;font-family: Verdana; font-size: 13px; font-weight:bold;'>";
    strText += "Bank Details</font>";
    Caption = strText;
    ReadOnly=true
  • 0 in reply to Matthew Shaw

    Hi Matthew,

    Thanks for this. The divider is added but the field is still present. I use the French version of Sage CRM and the CSS has been slightly adapted. The readonly fields are displayed with a grey background in edit mode. This is the reason why want to keep the caption but remove the value ( even when empty). this could also remove the unnecessary space under the caption.

      

Reply
  • 0 in reply to Matthew Shaw

    Hi Matthew,

    Thanks for this. The divider is added but the field is still present. I use the French version of Sage CRM and the CSS has been slightly adapted. The readonly fields are displayed with a grey background in edit mode. This is the reason why want to keep the caption but remove the value ( even when empty). this could also remove the unnecessary space under the caption.

      

Children