Varying caption and options


Author
Message
raynae
raynae
Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)Associate Member (189 reputation)
Group: Forum Members
Posts: 13, Visits: 53
hello, 
I'm trying to program my captions and response options to vary depending upon an earlier language selection so that I don't have to create separate items (to make later analysis easier).
For caption of radio buttons (for example) I've used this code at the block level:
/onblockbegin = [
if (values.select == "1") radiobuttons.freq1.caption = "Recycling is important";
if (values.select == "2") radiobuttons.freq1.caption = "La raccolta differenziata è importante"; ]

However the same logic doesn't seem to be working for varying option selection:
if(values.select == "1") radiobuttons.freq1.option.1 = "Never";
    if(values.select == "2") radiobuttons.freq1.option.1 = "Mai";
    if(values.select == "1") radiobuttons.freq1.option.2 = "Rarely";
    if(values.select == "2") radiobuttons.freq1.option.2 = "Raramente";
    if(values.select == "1") radiobuttons.freq1.option.3 = "Sometimes";
    if(values.select == "2") radiobuttons.freq1.option.3 = "A Volte";
    if(values.select == "1") radiobuttons.freq1.option.4 = "Often";
    if(values.select == "2") radiobuttons.freq1.option.4 = "Spesso";
    if(values.select == "1") radiobuttons.freq1.option.5 = "Very often";
    if(values.select == "2") radiobuttons.freq1.option.5 = "Molto Spesso";
    if(values.select == "1") radiobuttons.freq1.option.6 = "Not Applicable";
    if(values.select == "2") radiobuttons.freq1.option.6 = "Non Applicable";
Do you have any suggestions?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search