Catalog Item in Native UI

Vishwa Pandya19
Mega Sage

Hello,

I have a catalog item "XYZ" which is only available in the Native UI through a newly created module. I would like a helping hand in couple of things.

find_real_file.png

1. I would like to remove order this item section and have just a normal "submit" button like we have in the portal. Please guide.

2. I would also want that this request shouldn't be submitted without an attachment. So the attachment must be mandatory. I tried using "mandatory attachment" option doesn't work, tried client script doesn't work. 

Help would be appreciated!

Thanks!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

pointers

1. I would like to remove order this item section and have just a normal "submit" button like we have in the portal. Please guide.

Make  -> "No Cart" & "No  Odder Now" both as true

find_real_file.png

2. I would also want that this request shouldn't be submitted without an attachment. So the attachment must be mandatory. I tried using "mandatory attachment" option doesn't work, tried client script doesn't work. 

onSubmit catalog client script

function onSubmit(){
	
	var count = getCurrentAttachmentNumber();
	
	if(count == 0){
		alert("Please add file");
		return false;
	}
	
}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

--oooo--
Tera Contributor

Hello, @Ankur Bawiskar I tried to configure that field on my catalog item form but it's disappearing after 2 sec. why this happening please thank you.