Get the current item in a javascript Variable

1
0
-1

Hi everyone,

i have some issues using the UI designer, i have a form in my portal that has a container with repeated 2 inputs,
the first one is a radio button whith two choices (yes or no) and the second one is a number input,
what i need is to set the number input at read only if the choice "no" is selected, and delete the value already in the input.
http://img15.hostingpics.net/pics/724855Capture.png

what i need here is to set the first input to read only but not the second one, and delete the content of its input
what i used to do, is to create a javascript variable where i return true or false, but here i can't use $item in the the javascript variable.
do you have any idea how i can get the value of the current object?

Thank you

No answers yet.
Notifications