Essentially, I have a form for a purchase request which includes an estimated price, estimated tax, and estimated shipping. Those fields are summed by an equation field on the form called "Estimated Total".
My goal is to lock the submit button for the form until "Estimated Total" > $20.
To that end, I've created a button called "Check Total" which the user theoretically clicks after inputting their estimated prices. Then, my code should execute and unlock the submit button.
However, I keep getting errors in the console from my custom code and I'm too inexperienced to know what I'm doing wrong. This is my code so far: