Categorical multiselect enabling questions in roster

Hi everyone,
I want to capture the costs and returns of agricultural crops. By using Categorical:Multiselect for the crops name as source question for subsequent roster I need to have some crop specific questions in the roster. Ex. If the crop is plantation crop the question should appear as year of establishment of plantation. If the crop is field crop some other related questions. How to do it?

Hi, the code of the current crop will be accessible in the roster via the system variable @rowcode. If all your plantation crops are coded 1000…1999 and all field crops as 2000…2999 then the condition could be as easy as
@rowcode<2000
for questions related to plantation crops, and the opposite for the field crops.

Best, Sergiy

Hi Sergiy,

Appreciated!. @rowcode worked.

Thank you.
Mahin