Page 1 of 1

is there a way to extract other information from a response you click on

Posted: Thu Feb 20, 2014 7:01 pm
by danpickard

I've got a dynamic list and when I click a radio button I want one of the other parameters to get stored in a local variable so I can use it later on. The value I'm looking to store is teamId. I've got this JS for when I click the radio button but doesn't work :/

code var teamID = $(this).value('@teamId');
localStorage.setItem('team', teamID); /code

If I do a mapping the mapper will always select the bottom value, in my case 20 or 40, and won't return the one that's actually clicked, say 3,4,5,...


is there a way to extract other information from a response you click on

Posted: Thu Feb 20, 2014 9:12 pm
by Maryna Brodina

Hello! Could you clarify what is teamId? Is this some custom attribute? Could you post some screenshots so we can understand what is that?


is there a way to extract other information from a response you click on

Posted: Fri Feb 21, 2014 2:57 pm
by danpickard

I've solved this by adding an invisible label and storing the selected team ID in a local storage variable and calling that back when I need it