Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Restrict attachment of certain type while submitting the form

Mohammed Rafi S
Tera Contributor

Hi All,

 

I have to restrict an attachment of certain type when user selects a choice and submits the form, unable to restrict using business rule due to custom scope and abort action not working.

 

Please let me know how I can achieve this using onsubmit client script.

 

Thanks in Advance.

3 REPLIES 3

Muhammad Khan
Mega Sage

PA001
Mega Sage

Hello Mohammed,

 

Can you have look into the below posts it would help you to achive your reuirement.

 

https://www.servicenow.com/community/developer-forum/how-to-restrict-user-to-add-specific-file-exten...

 

Please mark my response as Correct / Helpful

Thanks

Jerick I
Kilo Sage

Hi @Mohammed Rafi S,

 

You can refer to this ServiceNow KB article. KB0725744 Checking attachment type in Service Portal

 

Please mark as Correct / Helpful if this solves your issue.
Regards,
Jeff