Hello,
I have a custom pdf template that gets variables from a client module, These fields are checkboxes in the module. When I call them in the template they are either shown as a 1 or a 0. I am trying to make it so they show up as either Yes or No. At first I thought I could use a simple php if statement but I cannot use php other than the variables in the template. I have attached 3 images to give a better understanding of what I mean, Thanks
Bumping this as i also have this issue, also you will notice, drop downs display the system label and not the display label
I have found a workaround using workflow. If you go into studio and create a field in the module that you need the template to be generated for (i created a field that doesn’t show up in the layouts) you can then have workflow change the value of that new field in relation to the old field. In our case we had a checkbox which is assigned either a 1 or a 0 for either checked or unchecked and we created a workflow that changed that “hidden field” to a yes or a no. Then we added that new fields variable name to the template.
What is the exact issue you are having?
When putting a checkbox field in the pdf template its showing as 1 or 0, i have been trying to get it to display as a checkbox, checked or unchecked as to wether its a 1 or 0, also when putting dropdown options or multiselect, it shows the system label ie (new_arragement_agreed) instead of the display label (New Arragement Agreed)