https://netsuiteprofessionals.com logo
a

Artur_K

05/04/2022, 7:45 AM
Has anyone experience with styling INLINEHTML? my fields are displayed randomly in a <tr> in the middle of the page. How can I align on the left side?
j

jen

05/04/2022, 6:52 PM
can you post the text of your
INLINEHTML
?
a

Artur_K

05/05/2022, 6:59 AM
Depending on the search result there might be 1 or more outputs
Copy code
// Looping through the list
            for(var index in searchList){
                const linkedINV = context.form.addField({
                    id: 'custpage_inv' + index.toString(),
                    label: 'Linked INV',
                    type: 'inlinehtml',
                }).defaultValue = '<p style=\'font-size:13px; width: 230px;\'>Invoice: ' +
                '<a href="<https://xxxxxx.app.netsuite.com/app/accounting/transactions/custinvc.nl?id='+internalId[index]+'&whence=>" target="_blank">' + searchList[index] + '</a></p>';
            }
And here is the HTML structure, the result is in the last <td> of the 3 created ones
j

jen

05/05/2022, 2:46 PM
Check what’s inside the <td> to see if NS wrapped it in centered or justified <p> tags. I’ve seen NS do this before. If so, put your own <p> tags in there and it won't add more.
a

Artur_K

05/09/2022, 8:21 AM
Inside the <td> it's aligned on the left. The issue I believe here is, that the output is inside the 3rd out of the three <td>'s. The first two <td>'s are empty
3 Views