Skip to main content
August 8, 2024
Question

Nested list/html list in Advanced Document Templating

  • August 8, 2024
  • 4 replies
  • 0 views

Hi all,

I have a list that I need to display the fields dynamically for, and one of the fields are a list. Right now I am using a styledTextEditorField for users to input a list, and the output is in HTML format. The document template I use so far is this -

«@before-row[#list doc.notes.note as n]»«${n.@title}»

Reports(s): «${n.@reports}»

«${n.@noteText}»

«@after-row[/#list]»

The noteText must be a list, and if I try to export with the noteText as is, it just exports the html directly like 

<ul><li><p>edit 1</p></li><li><p>edit 2</p></li><li><p>edit 3</p></li></ul>

When I try to replace the special characters in the XML generation it throws an error 

  • "The value of attribute "noteText" associated with an element type "note" must not contain the '<' character."(Text)

      I would like it to export a nested bulleted list in the regular "list". How can I do this?

      4 replies

      prasantap0900
      August 9, 2024

      Have you used smart services? If no, you can use the smart services. 

      stefanhelzle0001
      August 9, 2024

      While I try to avoid "Advanced Document Templating" and go the HTML->PDF way, I do not really understand how your reply helps the TO to solve his issue.

      prasantap0900
      August 9, 2024

      By using smart service, it will print the output in html template, I hope so.