How to call two interface through radio button

Certified Associate Developer

Hello, can anyone help me for below case

I just want to create two interface and what i want , if I call those two interface through a radio button so what approached i need to use for the same.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi, You can configure two radio buttons and these two buttons you can save boolean values, and once its set as true , something like below,

    a!localVariables(
      local!isRule1Visible:false,
      local!isRule2Visible:false,
      {
        a!radioButtonField(
          label: "Radio button 1",
          choiceLabels: {"yes","No"},
          choiceValues: {true,false},
          value: local!isRule1Visible,
          saveInto: local!isRule1Visible
        ),
        a!radioButtonField(
          label: "Radio button 2",
          choiceLabels: {"yes","No"},
          choiceValues: {true,false},
          value: local!isRule2Visible,
          saveInto: local!isRule2Visible
        ),
        if(
          local!isRule1Visible,
          rule!interface1,
          {}
        ),
        if(
          local!isRule2VisibleVisible,
          rule!interface2,
          {}
        )
      }
    )

  • 0
    Certified Associate Developer
    in reply to GopalK

    This code is working but it's showing only a value in the form of true or false. I want to show data of the both interfaces

Reply Children