- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2023 03:59 AM - edited 10-14-2023 04:03 AM
Hi Community, here is a use case I need to auto-populate a set of fields with a given set of values (like how we do it for standard change upon creation) but for a different change model.
Not using any kind of templates here, please suggest to me any other way that I could use to solve this use case.
Please help me resolve this use case.
Thanks in Advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2023 04:48 AM - edited 10-15-2023 05:03 AM
Here is how your html should be used.
g_form.setValue('u_html','<p> </p> <p> </p> <table style="border-collapse: collapse; width: 100.071%; height: 366.383px; margin-left: auto; margin-right: auto;" border="1"> <tbody> <tr style="height: 63.7969px;"> <td style="width: 41.1224%; height: 63.7969px; text-align: center;" colspan="3"> <p style="text-align: center;"><span style="font-family: verdana, geneva; font-size: 8pt;"><strong> </strong></span></p> <p style="text-align: center;"><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>SOURCE</strong></span></p> </td> <td style="height: 63.7969px; width: 26.1365%; text-align: center;" colspan="2"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong> </strong></span></p> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>DESTINATION</strong></span></p> </td> <td style="width: 66.2292%; text-align: center; height: 63.7969px;" colspan="4"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong> </strong></span></p> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>KEY DETAIL</strong></span></p> </td> </tr> <tr style="height: 68.1953px; text-align: center;"> <td style="width: 12.429%; height: 68.1953px;"><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>Application</strong></span></td> <td style="width: 14.7728%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>Hostname</strong></span></p> </td> <td style="width: 13.9205%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>IP Address</strong></span></p> </td> <td style="width: 13.6364%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>Hostname</strong></span></p> </td> <td style="width: 12.5001%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>IP Address</strong></span></p> </td> <td style="width: 9.73017%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>TCP Ports</strong></span></p> </td> <td style="width: 11.0057%; height: 68.1953px;"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>UDP Ports</strong></span></p> </td> <td style="height: 68.1953px; width: 45.4933%;" colspan="2"> <p><span style="font-family: verdana, geneva; font-size: 8pt;"><strong>Traffic Direction</strong></span></p> </td> </tr> <tr style="height: 234.391px; text-align: center;"> <td style="width: 12.429%; height: 234.391px;"> </td> <td style="width: 14.7728%; height: 234.391px;"> </td> <td style="width: 13.9205%; height: 234.391px;"> </td> <td style="width: 13.6364%; height: 234.391px;"> </td> <td style="width: 12.5001%; height: 234.391px;"> </td> <td style="width: 9.73017%; height: 234.391px;"> </td> <td style="width: 11.0057%; height: 234.391px;"> </td> <td style="height: 234.391px; width: 45.4933%;" colspan="2"> </td> </tr> </tbody> </table>');
This how the end result looks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2023 11:12 AM - edited 10-14-2023 11:13 AM
Hi @Danish Bhairag2 ,
As suggested I have removed the filter condition under when to run & kept an if condition in the script.
Still the same issue persists.
Please find the below screenshot :
Thanks