Group: Administrators
Posts: 13K,
Visits: 104K
|
Inserting properties, etc. into captions, text items, etc. generally works like this:
<survey mysurvey> / pages = [1=a; 2=b] / showbackbutton = false / showpagenumbers = false / showquestionnumbers = false </survey>
<surveypage a> / questions = [1=name] </surveypage>
<surveypage b> / questions = [1=age] </surveypage>
<textbox name> / caption = "What is your child's first name?" </textbox>
<textbox age> / caption = "How old is <%textbox.name.response%>?" / range = (0,120) </textbox>
And if you additionally want to normalize the input (response), you can apply string functions in an inline expression:
<survey mysurvey> / pages = [1=a; 2=b] / showbackbutton = false / showpagenumbers = false / showquestionnumbers = false </survey>
<surveypage a> / questions = [1=name] </surveypage>
<surveypage b> / questions = [1=age] </surveypage>
<textbox name> / caption = "What is your child's first name?" </textbox>
<textbox age> / caption = "How old is <%capitalize(tolower(textbox.name.response))%>?" / range = (0,120) </textbox>
|