CAPI Question getlabel in question text
Posted: March 16th, 2015, 6:09 pm
I am looking to display the label from a previous answer in a CAPI question. usually not a problem to reference something that is already in a alpha format, i.e.
"What is [ %HH_B01% ] 's age?" where HH_B01 is the alpha persons name. But in the case where you want to pull in the label for a selection I have issues. For example, question HH_E01 asks what was the source of funds, with options 1 = NEIGHBOR, 2 = FAMILY MEMBER, etc. Question HH_E02 asks, "How much did you borrow from [ SOURCE ]?". Here I would like the CAPI question text to read, " How much did you borrow from [ NEIGHBOR ]?"
Is having an alpha variable in the dictionary autofilled with the label for getlabel(HH_E01, HH_E01) the only way to accomplish this? It does not seem possible to use the getlabel function in the CAPI question.
thanks,
Jon
"What is [ %HH_B01% ] 's age?" where HH_B01 is the alpha persons name. But in the case where you want to pull in the label for a selection I have issues. For example, question HH_E01 asks what was the source of funds, with options 1 = NEIGHBOR, 2 = FAMILY MEMBER, etc. Question HH_E02 asks, "How much did you borrow from [ SOURCE ]?". Here I would like the CAPI question text to read, " How much did you borrow from [ NEIGHBOR ]?"
Is having an alpha variable in the dictionary autofilled with the label for getlabel(HH_E01, HH_E01) the only way to accomplish this? It does not seem possible to use the getlabel function in the CAPI question.
thanks,
Jon