How Add tables with rows and columns in the catalog item

shweta Kasbe
Kilo Contributor

How Add tables with rows and columns in the catalog item.I am having catalog item as shown in below image.By the click of an add button want to add rows and columns.

find_real_file.png

 

5 REPLIES 5

Murthy Ch
Giga Sage

Hi,

Are you talking about Multirow variable set?

 

Thanks,
Murthy

Vaishnavi Lathk
Mega Sage
Mega Sage

Hi,

something like this

1) you can add your Own HTML table and add style etc

2) Widget

HTML:

<div>
<!-- your widget template -->
  <head>
		<style>
			table {
			font-family: arial, sans-serif;
			border-collapse: collapse;
			width: 100%;
			}

			td, th {
			border: 1px solid #dddddd;
			text-align: left;
			padding: 8px;
			}

			tr:nth-child(even) {
			background-color: #dddddd;
			}
		</style>
	</head>
	<body>

		<h2>HTML Table</h2>

		<table>
			<tr>
				<th>Company</th>
				<th>Contact</th>
				<th>Country</th>
			</tr>
			<tr>
				<td>Alfreds Futterkiste</td>
				<td>Maria Anders</td>
				<td>Germany</td>
			</tr>
			<tr>
				<td>Centro comercial Moctezuma</td>
				<td>Francisco Chang</td>
				<td>Mexico</td>
			</tr>
			<tr>
				<td>Ernst Handel</td>
				<td>Roland Mendel</td>
				<td>Austria</td>
			</tr>
		</table>
	</body>
</div>

Variable:

find_real_file.png

Output:

find_real_file.png

Regards,

Vaishnavi

Saurav11
Kilo Patron
Kilo Patron

Hello,

You can use multi row variable set for this

Please check the article below:-

https://community.servicenow.com/community?id=community_article&sys_id=8d7f0f84dbbbaf00a39a0b55ca9619d0

 

Incase if you just want to show the entered variables in a table format please refer the correct answer from Ankur in the below thread:-

https://community.servicenow.com/community?id=community_question&sys_id=ef70f6f4db4ae410fb115583ca9619db

Please mark answer correct/helpful based on Impact

 

Thanks,But I dont want to achieve this by multi row variable set