Forum

How to hide complet...
 
Notifications
Retirer tout

How to hide complete fields section ?

4 Posts
2 Utilisateurs
0 Reactions
3,274 Vu
Kitcat711
(@kitcat711)
Posts: 65
Estimable Member
Début du sujet
 
[#4496]

Hello,

I found this explanation in the forum:
You must update code of the class in /model directory.

Complete the array $_fieldsAttributes to add "theDesiredField"=>"hidden".
The field "theDisiredField" will then automatically be hidden.

On the "Ticket", II am trying to hide some fields, where can I find the list of the fields ? I mean the label and "theDesiredField" are not the same and I faced some confusion trying to find the proper field.

How can I hide a full section like the "Product section" or "Notes" or "Attachments"?


 
Posté : 11/07/2017 11:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

The same, using the section name (working since 6.2 if my remembering is correct)


 
Posté : 12/07/2017 8:21 pm
Kitcat711
(@kitcat711)
Posts: 65
Estimable Member
Début du sujet
 

Yeah, I found the way to doit for the "Orgin Field", but this is not always easy to find the proper field "name".
On this screenshot you can see that I removed the "Links" field, but the section title still remains.
"Elements liés"

How ca I remove the full section here?

Thank you.


 
Posté : 12/07/2017 10:33 pm
(@babynus)
Posts: 14952
Membre Admin
 

The three sections "Links", "Attachments" and "Notes" have very specific behavior, as they are used on almost all items.
To hide link section, you'll have to comment corresponding line

// public $_sec_Link;

 
Posté : 15/07/2017 4:00 am
Share:
Retour en haut