passing server side survey data questions to the client controller

JeraldP
Tera Contributor

I want to retrieve survey questions from a table to display on a portal page. However I want to be able to  hover over certain words and their definitions appear  from a word/definition table on the Portal page

surveyQuestion.next();

data.question = {};

data.question.question  =  surveyQuestion.getElement("u_question.u_question").getDisplayValue();

Now parse through data.question.question looking for any of the words with definitions  and alter the returned value so that the results  pass to the Client controller will allow for a hover and display the definition of the words for the question on the portal page. I am not certain where the function to parse the data.question.question looking for the words found in the word definition table so that the hover over the word in the question  on the portal page needs to go in the server script ,Client controller, or the HTML or is it a combination of the three examples would be nice

This is my first SN Portal page and I inherited it as it is...The customer wants this hover over the word and if it is a word on the word/definition table display the definition on the page. The surveyQuestions all retrieve and display as string type from the question table currently.

 

 

 

0 REPLIES 0