- Posts: 12
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
var aFname = [ "{questioncode_01_fname}", "{questioncode_02_fname}", "{questioncode_03_fname}", "{questioncode_04_fname}", "{questioncode_05_fname}" ] var aAge = [ "{questioncode_01_age}", "{questioncode_02_age}", "{questioncode_03_age}", "{questioncode_04_age}", "{questioncode_05_age}" ]
var oAnswers = { 1: {'fname': "{questioncode_01_fname}", 'age': "{questioncode_01_age}"}, 2: {'fname': "{questioncode_02_fname}", 'age': "{questioncode_02_age}"}, 3: {'fname': "{questioncode_03_fname}", 'age': "{questioncode_03_age}"}, 4: {'fname': "{questioncode_04_fname}", 'age': "{questioncode_04_age}"}, 5: {'fname': "{questioncode_05_fname}", 'age': "{questioncode_05_age}"} }
Please Log in to join the conversation.
Please Log in to join the conversation.
Sorry, I was working from my phone. To avoid ExpressionScript errors, you need to insert a space or line-break after all opening curly braces and before closing braces that are not used by ExpressionScript.I tried the above option but while adding the Question code into an object that will not working in lime survey source due to lime expression. lime giving "em" undefine variable error on the screen.
var oAnswers = { 1: { 'fname': "{questioncode_01_fname}", 'age': "{questioncode_01_age}" }, 2: { 'fname': "{questioncode_02_fname}", 'age': "{questioncode_02_age}" }, 3: { 'fname': "{questioncode_03_fname}", 'age': "{questioncode_03_age}" }, 4: { 'fname': "{questioncode_04_fname}", 'age': "{questioncode_04_age}" }, 5: { 'fname': "{questioncode_05_fname}", 'age': "{questioncode_05_age}" } }
var oAnswers = { 1: { 'fname': "{questioncode_01_fname}", 'age': "{questioncode_01_age}" }, 2: { 'fname': "{questioncode_02_fname}", 'age': "{questioncode_02_age}" }, 3: { 'fname': "{questioncode_03_fname}", 'age': "{questioncode_03_age}" }, 4: { 'fname': "{questioncode_04_fname}", 'age': "{questioncode_04_age}" }, 5: { 'fname': "{questioncode_05_fname}", 'age': "{questioncode_05_age}" } }
Please Log in to join the conversation.