HTML not displaying properly sometimes

Our Form Tasks have HTML tables in them that are displayed inside an HTML element in the form. Sometimes it works correctly:

Sometimes it doesn’t:

I copied the HTML directly from the Form Task, pasted it into a text file, and opened it in Chrome and there is nothing wrong with the HTML:

image

And sometimes it just comes up blank:

Anyone have any idea why this is, and how to make the HTML display work properly in Form Tasks?

Browsers are a lot more forgiving with invalid HTML code, but there is something wrong with the sample code you posted, unless my html knowledge is so extremely outdated that I say something silly here. In that case, appologies in advance :wink:

The opening table node ends with a / which effectively closes the node folowing xhtml formatting rules. Could that be your issue?
image

Yes it definitely could. Good eye, I looked at it over and over.

Odd that it would work sometimes and not others though.

1 Like

Funny thing is, this comes from a custom activity we have been using for YEARS. I just looked at the code and that extra / has been there for YEARS. We used it to display thins in emails and apparently Outlook doesn’t care about the /. Only recently we started also using the resulting HTML to display things in Action Center.

There is an irony here.

Low-code forcing us to write cleaner code :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.