RE: I need to do External Document No. as mandatory.
Rather than putting it on page extension, why not put it on Codeunit 414 - Release Sales Document ?
You can subscribe to event OnBeforeReleaseSalesDoc and put the TestField there.
Yes, users can insert the line, but they will not be able to post or release the order without filling in External Document No.