Page 1 of 1

Hide/show data tree values

Posted: Mon Jul 05, 2021 6:33 pm
by fabiopf
Hi Guys,

I want to have additional field values for area, inertia, torsion constant, etc depending on the type of the element (TRUSS_2D, BEAM_2D, etc). How can I hide or show additional input values as the user changes the "Element" drop-down list? Some elements have over ten parameters, what is the best way to implement it?

[img]
Capture.PNG
[/img]

Re: Hide/show data tree values

Posted: Mon Jul 05, 2021 7:38 pm
by escolano
You must do it with 'dependencies', that define what to do when a value of a question is set (like hide/disable or restore other fields)

I don't know if your problemtype is 'classic' or 'customLib'-tree like (the image is not uploaded as an attachment to your question)
In both cases is possible to define dependencies, but the syntax off course is different.

Find in the 'GiD customization manual' (and in some problemtype as example) about dependencies.