Why style css not working in Client controller html code of widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 07:33 AM
Hi Community,
Below is the Client Controller code where style='padding-left:10px css is not working:-
Below is the pop up alert showing on service portal
I want the space between two fields.But it's not working.
Could someone please help me on the same?
Thanks,
Ankita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:06 AM
I don't whether it would help, but you forgot to close the <TR> tag.
</td></tr></table>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:55 AM
Please try below.
c.onAlert = function(temp) {
c.server.get({
action: "test",
duns: temp.$$watchers[0].last
}).then(function(r) {
var htmlCode = `
<table>
<tr>
<td>GIS ID:</td>
<td style="padding-left:10px;">${r.data.result[0].gisid}</td>
<td>Entity Name:</td>
<td style="padding-left:10px;">${r.data.result[0].gisid}</td>
</tr>
</table>`;
spModal.alert(htmlCode).then(function(answer) {
c.simple = answer;
});
});
};
Please mark my answer correct and helpful if this works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 09:13 PM