Exporting a PDF from Articulate Storyline that reports only on fields that have data and leaving other references blank not presented with zeros (0).
In Articulate Storyline, I have created a button to export a PDF via a WORD file. I have referenced 40 values (%_%) which are presented with zeros unless a value has been populated. For example I can 30 zeros in a table with 10 random values, making the values difficult to identify quickly. Is there anyway I can reference the 40 values but have them appear blank in the WORD file unless it holds a value?
Reply
Posted on 12/16/2025
Please type your reply.
@support
If everything works properly, the variables in PDF should match the variables in Storyline. So if, for example, the variable "test" is blank in Storyline, you will just see an empty space in the PDF. There shouldn't be any difference between what you see in Storyline and what you see in a PDF. Are you saying that you are assigning a blank value in Storyline, but seeing a zero in the PDF?
Reply
Posted on 12/17/2025
@cellina
The WORD file currently references around 48 %_% which are currently presented in the table. Before the user interacts with the SL file, these references hold a value of zero (0).
If the user adds value to 10 of the 48 references, the table output 10 values and the remaining 38 references are zeros (0). The feedback I received was it is hard to see the 10 values in a table full of zeros (0). can we have the remaining part of the table stay blank unless a value is created by the user.
Does this make sense? Happy to share a visual to support my explanation.
Reply
Posted on 12/18/2025
@support
Yes you can. By assigning blank values to all variables that are zero right before calling the PDF generation trigger.
Reply
Posted on 12/18/2025
@cellina
That's great. Are you able to provide me with examples of how to achieve this?
Reply
Posted on 12/18/2025
@support
If your variables are text, you can just use a trigger to set them to blank. If they are numeric, the Storyline SetVar function should still be able to set them to blank. Use the "" (two straight double quotes with no space in between) as the second argument.
If something has changed in Storyline and the above no longer works, you can set up text variables for the PDF and numeric variables for the slides. Before calling the PDF trigger - check the values in the numeric variables, and if they are not zero then copy them to the text variables.