Hiding a Short Description on Catalog Request Item form

prudhvig
Tera Expert

Hi,

I have created a catalog item and the view looks as below:

Screenshot (613).png

I want to hide that text from the form view. It is actually the Short Description of the catalog Item.

How can I achieve this? Thanks in advance.

1 ACCEPTED SOLUTION

Gaurav Bajaj
Kilo Sage

Hi,



There are two ways to achieve it.


First is nice and simple: Leave the short description field empty and track any information if you need in a custom field.


Second is you can do it with DOM manipulation in catalog client script.



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.getElementsByClassName('guide_tray')[0].style.display="none";


}






find_real_file.png



Please mark correct/helpful based on the impact of the response.




Thanks


Gaurav


View solution in original post

5 REPLIES 5

Gaurav Bajaj
Kilo Sage

Hi,



There are two ways to achieve it.


First is nice and simple: Leave the short description field empty and track any information if you need in a custom field.


Second is you can do it with DOM manipulation in catalog client script.



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.getElementsByClassName('guide_tray')[0].style.display="none";


}






find_real_file.png



Please mark correct/helpful based on the impact of the response.




Thanks


Gaurav


Hi Gaurav,

The information regarding hiding of Short description is really helpful. I am working on similar type of requirement where I want to hide description of catalog item through your second method. I really appreciate your help on this.

 

Thanks

Lakshman

kpn
Tera Contributor

Hi, 

I want to hide a Short Description on Catalog Request Item form. I tried with the document.getElementsByClassName('guide_tray')[0].style.display="none"; 

DOM manipulation, it is mentioned New client-scripts are run in strict mode, with direct DOM access disabled. Can anyone suggest me with right way.

Sivakrishna
Kilo Sage

Hi @Lakshman12 ,

     Is the 2nd method(DOM manipulation) working fine for you??

I want to hide the description of a catalog item in portal.

 

With Regards

 

P.Sivakrishna