The CreatorCon Call for Content is officially open! Get started here.

Bordering of fields in catalog.

feroz4051
Mega Expert

Hi, Is it possible to border variable field of catalog Item as shown below.

 

Untitled1.png

By default :

Untitled2.png

6 REPLIES 6

OK, so a few final thoughts for consideration:


1) I noticed your screen shot looks like you are using UI14 in Eureka, all my code is in UI11, so there might some subtle difference that I am not aware of, not sure if anyone else might know something there


2) if I were trying to do this, I would use Google Chrome, and just do in-line edit (green box) of the CSS styles to see if I can get the effect I want, and what field/s that will get me the results (see screen shot), then I know 'EXACTLY what needs to be coded for and if the field has not id, name, or class, then there is no simply way to do it as far as I know


chromeCapture.JPG


lastly


if you cannot get the results you want with that inline editor , see if anyone else has an idea for you, or submit an enhancement/ or question to service-now directly, or just put this on the back-burner and try again later



Good Luck


Slava Savitsky
Giga Sage

Create an onLoad client script with the following code:



function onLoad() {


        var t = $$('table.io_table');


        for (i = 0; i < t.length; i++) {


                  t[i].style.border = '1px solid red';


        }


}



If you need it to work on all your Service Catalog forms, create a global UI script with the same code.