show a fieldset previously hidden

show a fieldset previously hidden

samuelvincentsamuelvincent Posts: 2Questions: 1Answers: 0

how to show a fieldset previously hidden in a form according to the option selected in a menu

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    edited September 2019

    Hi @samuelvincent ,

    Is this using Editor? If so, dependent() would do the trick - see example here.

    Cheers,

    Colin

  • samuelvincentsamuelvincent Posts: 2Questions: 1Answers: 0

    hi!
    thanks for your reply, i found it before your answer.
    on the other hand I can not check the fields of my form.
    I found examples of code but nothing works, hidden fields are always taken into account in the verification of my form and I have messages of errors.
    thanks a lot

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Yep, if those fields are declared, they would still be sent to the server - so your scripts would need to consider when doing the validation.

This discussion has been closed.