@LaFede Adobe doesn’t provide support for scripts. However, I am trying to lead you down the path so you may achieve the desired results with less effort.
For scenario 1 of my initial post, about step 2:
Button to Unlock Step 2
- Add a button labeled “Proceed to Step 2”.
- In Button → Properties → Actions → Run JavaScript:
this.getField("Step2_Field1").display = display.visible;
this.getField("Step2_Field1").readonly = false;
this.getField("Step2_Field2").display = display.visible;
this.getField("Step2_Field2").readonly = false;
You can also lock Step 1 fields:
this.getField("Step1_Field1").readonly = true;
this.getField("Step1_Field2").readonly = true;
Check the section “About JavaScript in Acrobat”: https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html
~Tariq