Survey Forums

HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentHow could I also save SQL dropdownlist's text?How could I also save SQL dropdownlist's text?
Previous
 
Next
New Post
3/21/2017 6:07 AM
 

I found if the answer of survey is SQL answer type, it can only save dropdownlist's value in answertext column in vts_tbVoterAnswers table.

How could I also save dropdownlist's text?

 
New Post
3/27/2017 5:12 PM
 

Hello,

As is explained on the Create Answertype Menupage: in case of SQL

*First two columns of query results will be used as the value and text in the dropdown list

You cannot save two different values at the same time.
Alternatives:
- use the same field for both value and text
- concatenate the text and value fields into the value

select firstname, userid from vts_tbuser
select firstname, firstname from vts_tbuser
select firstname, firstname+convert(varchar,userid) from vts_tbuser


 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentHow could I also save SQL dropdownlist's text?How could I also save SQL dropdownlist's text?