Menu

Hide/Show Fields based on an attribute

2023-04-14
2023-04-14
  • Abdullah Noman

    Abdullah Noman - 2023-04-14

    Hello, I am wondering If there is a way to show or hide certain fields based on an attribute? For example, If I were to create an object at the beginning it will be in an open state and I would like to hide some fields then but afterwards when I go to modify that object I want to show few more fields. Is there a way to do it?

    I am wondering what PHP method can I call to hide or show some fields?

    Kind Regards,

    Abdullah

     
  • Vincent @ Combodo

    is a way to show or hide certain fields based on an attribute?

    Also one would expect it to work using GetAttributeFlags() and field XML tag "dependencies", tests show that it does not work very well in the console.
    What works well, is making a field read-only or mandatory based on another attribute value, but hiding it, does not work.

    On the other hand with maybe some hacks, this extension propose dynamic fields which can be shown/hidden based on another field value in console and portals...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.