Hi,
I am trying to post a specific text based on a value of a constructed list. The constructed list is empty,
1.
2.
3.
4.
we use it to randomly show one of 4 pages.
Now I am trying to post a text on the next page based on the list member that was drawn. I tried the following script:
<style type="text/css">
[% Begin Unverified Perl
if(GETVALUE("randlist1_1") == 1)
{
return "1";
}
elsif(GETVALUE("randlist1_1") == 2)
{
return "2";
}
elsif(GETVALUE("randlist1_1") == 3)
{
return "3";
}
else(GETVALUE("randlist1_1") == 4)
{
return "4";
}
End Unverified %]
</style>
Unfortunately it is not working. I also tried to switch the variable from "randlist1_1" to "sys_block_set_1". Both is not working.
I also tried the script with a hidden variable
<input name="priceDisplay" type="hidden" value="[%randlist1_1%]">
And then used priceDisplay in the Script.
I have looked through the following link:
https://sawtoothsoftware.com/help/lighthouse-studio/manual/unverfiedperl.html#examples
Unfortunately, I did not find the solution. It would be great if someone can help me out.
Thanks
Joshua