One way to lock down a form is through JavaScript. Let’s go through how to do this by locking down the Leads form.
Create a new solution and add the Leads form:
Select Form Properties and Add from the Form Library. We will be adding a new JavaScript library:
Select New: