danpickard
Posts: 0
Joined: Wed Feb 12, 2014 2:37 pm

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

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,...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

danpickard
Posts: 0
Joined: Wed Feb 12, 2014 2:37 pm

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

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

Return to “Issues”