Draw red X on PDF pages inside template

Hello

I have project where I want to draw red “X” mark on some selected PDF pages.

I have information at which pages inside JSON file field like:

var json = {“SelectedInvoicePages”:[true,true,false,true,false,true]};
(For example this document has 6 pages and each true,false means about state)

JSON object is passed into template using ExtraData field.

I would like to display red “X” when the value is “false”

Is there any way to draw this using Standard Script or Conditional Script?

Please help

Hello,
yes you can use a conditional script on the red “X” image to show or to hide it.
You could more information on the below link:
https://help.objectiflune.com/en/planetpress-connect-user-guide/2020.1/#designer/VariableData/Conditional_Content.htm#toc-0
I hope this would help you.