hello,
I'm using Sharepoint 2007 and Infopath.
I've created a Document Library and populate the library using Infopath. the Library is used as a log.. users enter log entries using an infopath form which has been published to the library. when users open the form, they choose the type of log entry.. either a general log entry, error log entry, or informational log entry.
My question is dealing with the error log entry. So, when a user selects the error log entry it opens certain fields in the form and they enter information dealing with the error. then submit the form to the library.
I have created columns in the library to store the data from the form. In the main view, I've created one calculated column which I want to return selected pieces of info from the form. I'm trying to have certain text displayed a certain color using the below formula which is in one Calculated Column:
=If([Log Type]="General",[Gen Remarks 1],If([Log Type]="Informational",[Gen Remarks 2],If([Log Type]="Error","<DIV Style='font-weight:bold;color:Red'>"&"Equipment Affected:"&"</DIV>"&"<DIV Style='font-weight"Normal;color:black'>"&[Equipment Affected]&"</DIV>"&";"&""&"<DIV Style='font-weight:bold;color:Red'>"&"Brief Description:"&"</DIV>"&"<DIV Style='font-weight:normal;color:black'>"&[Err Remarks]&"</DIV>"&";"&" "&"<DIV Style='font-weight:bold;color:Red'>"&"Remarks:"&"</DIV>"&"<DIV Style='font-weight:normal;color:black'>"&[Gen Remarks 3]&"</DIV>"&";"&" "&"<DIV Style='font-weight:bold;color:Red'>"&"Who Contacted:"&"</DIV>"&"<DIV Style='font-weight:normal;color:black'>"&[Contacted]&"</DIV>",""))). This formula works kinda, returning: Equipment Affected: (in red)
Server
;
Brief Description: (in red)
text text text from infopath field in black
;
Remarks: (in red)
text text text from infopath field in black
;
Who Contacted: (in red)
I would like to have it return:
Equipment Affected: Server; ("Equipment Affected:" text is red, text after : is black)
Brief Description: text text text from infopath form; ("Brief Description:" text is red)
Remarks: Text text text from infopath form; ("Remarks:" text is red)
Who Contacted:
formula works if I don't add the <DIV>tags for font weight and color, but all is in black, but at least everything is in line. Does this make sense? Can anyone help?? would appreciate any help,
Thanks,
Dave