• Binary
    August 26, 2019 at 9:01 am #5527

    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
    August 26, 2019 at 9:48 am #5529

    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
    August 27, 2019 at 12:36 am #5530

    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
    August 27, 2019 at 6:19 am #5533

    Hi Binary,

    I’m glad that worked for you.

    Regards,

    Stephen P.

     

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search