Binary
Hi there,
I have a table (Table1) with two columns. On the left column is a radio box group (Radio_Button_Group1) and on the left is an text input (Text1).
When I click on a specific value of the radio box group, I would like to show or hide the text input. I was able to do this for the first item but I have no idea how to get the number of the row, where the radio button was clicked.
if(${Radio_Button_Group1}.getSelectedItem() == "Anzeigen"){
${Text1[0]}.show();
} else {
${Text1[0]}.hide();
}
-
This topic was modified 3 years, 7 months ago by
Binary.
SPARK Support
Hi Binary,
You might want to try getSibling() from the On Change event of the Radio Button Group if the Text control is in the same row:
if (me.getSelectedItem() == “xyz”){me.ui.getSibling(“Text1”).show()}
Regards,
Stephen P.
Binary
Hi Stephen,
thanks a lot!
It works fine and this is my code (in case somebody would like to know):
if(me.getSelectedItem() == "Anzeigen"){
me.ui.getSibling("Text1").show();
} else {
me.ui.getSibling("Text1").hide();
}
SPARK Support
Hi Binary,
I’m glad that worked for you.
Regards,
Stephen P.