Discussions

Expand all | Collapse all

Table Style in Rich Text field

  • 1.  Table Style in Rich Text field

    Posted 02-27-2018 22:14
    I am trying to create a table within a Rich Text field.
    Somehow, the style control in the table is not working

    "<table width='600' style='border-collapse:collapse;border-spacing: 1px 1px' cellpadding='0' cellspacing='0' align='center'>"

     When comparing  'border-collapse:collapse? vs  'border-collapse:seperate?

    ?border-spacing: 1px 1px'  vs ?border-spacing: 15px 15px'

    There's no difference on the format.  
    Any suggestions are highly appreciated!


  • 2.  RE: Table Style in Rich Text field

     
    Posted 04-15-2019 20:29
    Give this a look:

    "<table style\"width:100%\"; border=\"1\">\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project name"&"</td>\n
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Project Name]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Fiscal Year"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Fiscal year]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Institute / Department Name"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Institute / Department Name]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Service Line / Area of Focus"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Service Line / Area of Focus - Assigned]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Region"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Region/Location - Assigned]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project Owner"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&ToText(UserToName([Project owner]))&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project Requestor"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Project requestor name]&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Leadership Name"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&ToText([Project Request - Leadership name])&"</td></tr>\n
    <tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Confidential?"&"</td>
    <td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&If([Confidential?]=true, "Yes","No")&"</td></tr></table>"


  • 3.  RE: Table Style in Rich Text field

     
    Posted 04-15-2019 20:30
    End result will look like this attached image.