Filter values in looping


Product Version: PDFNet 9.4.2

Please give a brief summary of your issue:
Is there a way to filter the data when looping in a template?

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Hi Tom,

Can you be more specific on what you mean by filtering? You can add conditionals to your JSON to ensure that content is only added if the condition is met. For more information see here:

If data json is as follows
“legal_heading”:“End-User Agreement”,
“legal_clauses”: [
{“legal_clause”:“Sed ut unde omnis iste natus error sit volup tatem…”},
{“legal_clause”:“Lorem ipsum dolor sit amet, consec tetuer adipi s…”},
{“legal_clause”:“pretium quis, sem. Nulla conse quat massa quis eni…”},
{“legal_clause”:“idunt. Cras dapibus. Vivamus elem entum semper nis…”}
How do I set a condition to loop through legal_clauses and show just the text that has the word “error” it in?