Making attachment mandatory on initial record producer request form...

samuelscott
Tera Expert

 

I know this question must be pretty common, but I am not being able to get around it. I'm trying to make users attach a document on the initial form for a record producer and I found this on the community: https://community.servicenow.com/community?id=community_question&sys_id=ec764fe1db1cdbc01dcaf3231f96...

 

I can't make it work (of course, I placed my custom table instead of the one displayed on the code). My custom table is: u_procurement_request_pp

1 ACCEPTED SOLUTION

samuelscott
Tera Expert

Actually, the post I mentioned works and most of the solutions suggested work. The reason why I was having trouble was because there is a hidden field on the client script from that should be disabled. That field is: "isolate script"

View solution in original post

20 REPLIES 20

Prateek kumar
Mega Sage

This helps??

https://community.servicenow.com/community?id=community_question&sys_id=dd618729db98dbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Not really...

Raf1
Tera Guru

Can you try this onSubmit?

function onSubmit() {
	
	if (parseInt(countAttachments()) < 1) {
		alert("Please attach signed off application form");
		return false;
	}
	
}

Is this a catalog client script for a record producer?