JavaScript Using Adobe Acrobat Pro DC

Need help please.

Im creating a form using Adobe Acrobat Pro DC.

I require java script for when the user fills Text Field “A” with a value of between 300 to 600 Text filed “B” displays the following message “PASS”. If the value is outside of 300 to 600 then Text Box “B” displays “Fail”



What do you have so far? What is working? What isn’t working?