Hi Nimesh,
This post is bit similar to what you locking for. Kindly check
Regards,
Sahan
Hi @Sahan Udana
Thank you for the reply. Unfortunately this is not what I required. I just need to limit attaching FILE TYPE of PDF to a specific document class only.
A macro should be able to do this, but I have not tested it. There is a post here on Community about restricting files over a certain size. A similar macro could check the file type and give an error if it is not allowed.
A custom event might also work, but I'm not sure how nice the error for the user would be.
Good luck!
The macro post mentioned by Mathias
@Mathias Dahl and @ShawnBerk Thank You!
Hi @nimesh
You can do this with a simple macro script. There are script values to get the document class as well as the file type and you have to just raise an error within the script if the necessary conditions meet.
BR