Check if url is broken

Check if url is broken

Hello,

I would like to know if there is a way to check if a url is broken when submitting a form, in this case I want to check a permalink of a file hosted on Workdrive.

Is it possible and how?

Thank you.