Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Mouseover within Perl script

Can you please help me in the below perl script. I show mouseover text when respondent hover on text (more). Before that I have added my Attribute text for BYO and Non BYO. Here I am getting error. Not sure I am following the syntax rule.

 begin unverified perl  
  if(QUESTIONNAME() eq "exam_BYO")  
 return "Attribute-TextA" TOOLTIP ("(more)", "mouse over text", 10, 45);  
 return "Attribute-textB"  TOOLTIP ("(more)", "mouse over text", 10, 45);  
 end unverified  
asked Mar 5, 2013 by Lawrence Bronze (2,100 points)
retagged Sep 1, 2016 by Walter Williams

1 Answer

0 votes
Best answer
Initial thought -- try putting a '.' before TOOLTIP to concatenate two strings.
answered Mar 5, 2013 by Gary Baker Silver Sawtooth Software, Inc. (7,920 points)
selected Mar 5, 2013 by Lawrence
Great Answer! It works good.
You were 99.9% there! :)