1 Reply Latest reply on Aug 3, 2010 11:18 AM by Steve L Walker

    Read Only fields

    samuel9294_newbie Level 1

      Can I assign a button that will bring up a javascript window to enter a password, to change the status of more than one field AT THE SAME TIME, from "read only" to "user entered optional", and then on saving have the same fields go back to the "read only" status?


      I was playing around with some code but cant get it to work for multiple fields




      var cRtn = app.response("Please Enter Password:", "Document Control Only");


           if (cRtn == "12345")



           this.presence = "invisible";


           TextField1.access = "open";





      also for it to revert to read only on save, Im pretty sure I will have to insert some code on the presave event...


      still trying to figure out



      help anyone?