I have a survey which has a pass-in field called TYPE.
If TYPE=1, display the logo in the header.
If TYPE=2, do not display the logo in the header.
I was using the following pop-up script as the header when the TYPE condition was not applied ...
[%PopUp("<img src='"&GraphicsPath()&"CompanyLogo.png' alt='' border='0'>","https://www.abcxyz.com.au/",850,650)%]
I then wrote some Perl in the following constructed list (HeaderConList) to select the logo based on the TYPE variable ...
Begin Unverified Perl
if (VALUE("TYPE")==1)
{
ADD("HeaderList",1);
}
End Unverified
HeaderList contains 1 code which is defined as the PopUp script mentioned above.
I then used [%ListLabel(HeaderConList,1)%] in the header.
My problem is I have [%%] from the PopUp function inside the Perl script. I know the Perl script works fine as I tested it where the header was simple text.
If I wasn't using the PopUp function and used "img src" only, I wouldn't have this problem.
Looking for a best solution where I can avoid this issue.