Hide/show data tree values

Moderator: GiD Team

Post Reply
fabiopf
Posts: 9
Joined: Tue Jun 08, 2021 8:12 pm

Hide/show data tree values

Post 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]
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: Hide/show data tree values

Post 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.
Post Reply