Remove text field

Hi all,

       In the interface i'm using button to remove the text field. But it's not getting can anyone help me out.

 

Warm Regards
Narmada.P

  Discussion posts and replies are publicly visible

Parents
  • Hi Narmada,
    As per my understanding, your question is like, click on the button, text component has to hide right ? if it is correct follow the code

    a!formLayout(
    contents: {
    a!textField(
    label: "textfiled",
    showWhen: not(
    ri!value = true()
    )
    )
    },
    buttons: a!buttonLayout(
    secondaryButtons: a!buttonWidget(
    label: "submit",
    saveInto: ri!value,
    value: true()
    )
    )
    )
    let me know if you have different scenario.
Reply
  • Hi Narmada,
    As per my understanding, your question is like, click on the button, text component has to hide right ? if it is correct follow the code

    a!formLayout(
    contents: {
    a!textField(
    label: "textfiled",
    showWhen: not(
    ri!value = true()
    )
    )
    },
    buttons: a!buttonLayout(
    secondaryButtons: a!buttonWidget(
    label: "submit",
    saveInto: ri!value,
    value: true()
    )
    )
    )
    let me know if you have different scenario.
Children