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: 5,893Questions: 0Answers: 1,020
    edited September 12

    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: 5,893Questions: 0Answers: 1,020

    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.

Sign In or Register to comment.