Display the Field, based on user selection by Radiobutton.!

Certified Associate Developer

a!radioButtonField(
label: "Status",
choiceLabels:{"APPROVE","REJECT","RETURN"},
choiceValues: :{"APPROVE","REJECT","RETURN"} ),

a!paragraphField( 
showwhen(...)

)

*if user selects Reject or Return, then only show the Paragraph field.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    hi, I think this will help you. Create two rule inputs as value and paravalue.

    {
    a!radioButtonField(
    label: "Status",
    labelPosition: "ABOVE",
    choiceLabels: {"APPROVE","REJECT","RETURN"},
    choiceValues: {"APPROVE","REJECT","RETURN"},
    value: ri!value,
    saveInto: {ri!value},
    choiceLayout: "STACKED",
    validations: {}
    ),
    a!paragraphField(
    label: "Paragraph",
    labelPosition: "ABOVE",
    value: ri!paravalue,
    saveInto: {ri!paravalue},
    refreshAfter: "UNFOCUS",
    height: "MEDIUM",
    validations: {},
    showWhen: or(ri!value="REJECT",ri!value="RETURN")
    )

    }

    Thanks.

Reply
  • 0
    Certified Senior Developer

    hi, I think this will help you. Create two rule inputs as value and paravalue.

    {
    a!radioButtonField(
    label: "Status",
    labelPosition: "ABOVE",
    choiceLabels: {"APPROVE","REJECT","RETURN"},
    choiceValues: {"APPROVE","REJECT","RETURN"},
    value: ri!value,
    saveInto: {ri!value},
    choiceLayout: "STACKED",
    validations: {}
    ),
    a!paragraphField(
    label: "Paragraph",
    labelPosition: "ABOVE",
    value: ri!paravalue,
    saveInto: {ri!paravalue},
    refreshAfter: "UNFOCUS",
    height: "MEDIUM",
    validations: {},
    showWhen: or(ri!value="REJECT",ri!value="RETURN")
    )

    }

    Thanks.

Children
No Data