- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 04:38 PM
Hi All,
Please let me know how to adjust Table borders in notification
template.print("<table border='1px solid black'>");
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', current.sys_id.toString());
gr.query();
if (gr.next()) {
template.print("<tr><td> Number </td><td>" + gr.number.toString() + "</td></tr>");
template.print("<tr><td> Category </td><td>" + gr.category.toString() + "</td></tr>");
}
template.print("</table>");
Expecting Table format like below, can we make any changes to get it.
Number | INC0009003 |
Category | Inquiry |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:43 PM
HI @Sironi
Can you check with this
template.print("<style>table { border-collapse: collapse; } table.outer { border: 10px solid black; } table, th, td { border: 1px solid black; }</style>");
template.print("<table class='outer'>");
Mark it Helpful and Accept Solution!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:17 PM
Hi @Sironi Increase the border Pixel make 2px or 3px according to your requirement .
Mark it Helpful and Accept Solution!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:21 PM
I tried and increased it to 5px, inside cells also getting become solid black, I don't want inside cells to be solid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:26 PM
template.print("<style>table { border-collapse: collapse; border: 2px solid black; } table, th, td { border: 1px solid black; }</style>");
template.print("<table>");
Mark it Helpful and Accept Solution!! If this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:33 PM
sorry no luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2024 10:43 PM
HI @Sironi
Can you check with this
template.print("<style>table { border-collapse: collapse; } table.outer { border: 10px solid black; } table, th, td { border: 1px solid black; }</style>");
template.print("<table class='outer'>");
Mark it Helpful and Accept Solution!! If this helps you to understand.