- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 07:36 AM
Hi,
I am working on a Record producer and i need to make it mandatory when i have a question as Mandatory Can we do that?
I tried using Variable type attachment but unfortunately it is not working as per use case and ended up having multiple issues like we cannot add mulitple attachments.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 08:21 AM
So you want to make attachment mandatory on record producer during submission based on some other variable value?
OR
there is an attachment type variable and you want to make it mandatory?
If it's the first case then check my blog on mandatory attachments; enhance it for your requirement
If my blog helps please mark it helpful
Verify Mandatory Attachments Count on Catalog Item
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 07:39 AM
Hi,
You can create an onSubmit client script to review the current value of 'x' variable and if 'y', then make the attachment mandatory (at least 1 or more attachments to be required). Please see other threads like here: https://community.servicenow.com/community?id=community_article&sys_id=0f0c5290dbe7f380d82ffb2439961...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 07:56 AM
I did gone through this solution earlier but it did not worked for us.
https://serviceportal.io/downloads/require-attachments/
Because we need to set the Mandatory attachments set to true in the portal setting and it is mandatory every time 😞

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 08:01 AM
Hi,
If you set the attachments to mandatory true in the service portal settings, then yes, it'll be mandatory all the time.
Are you unable to change that to false and then let your script verify the true need for an attachment?
Also, as a side note, please always state things in your original post that you've tried, just to help us...help you. Otherwise, we don't know what you've tried, etc.?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 09:09 AM
Thank you sir, I tried using a type called Variable but it is not working for me since it allows only one attachment.
When i import update set posted by Nathan which works only when i set the Mandatory attachments mandatory, i cannot make attachment mandatory based on the condition