Skip to main content
January 25, 2022
Solved

how to let Child interface rule input value transmit to parent interface?

  • January 25, 2022
  • 6 replies
  • 0 views

I have a checkbox need to be choose in a Child interface, and then i want its selected value transmit to parent interface? how to do it?

    Best answer by andrewh0007

    Let's say this is your child interface:

    If you had your parent like this:

    a!localVariables(
      local!checkbox,
      rule!TEST_Child(
        checkboxValue: local!checkbox
      )
    )

    Then when you changed your checkbox selections it would save into the local!checkbox local variable in the parent interface.

    6 replies

    andrewh0007
    January 25, 2022

    You'd have the value in the parent interface as a local variable or rule input and pass it through to the child interface through a rule input.

    January 25, 2022

    I want the child pass to the parent, if i fill value in check box, then how can i let parent interface get it?

    andrewh0007
    January 25, 2022

    I'm not sure how else to explain this. The checkbox in the child would save to a rule input which would then pass to the parent. This is how every interface parent and child relationship works.