2 Replies Latest reply on Feb 4, 2013 9:11 AM by silverstarfyus

    Changing a field color based on the answer


      ok. I am looking to do a simple verification based on what someone enters into a text field, meaning there is a "correct" and "incorrect" response. I know how to do this with JavaScript on the web, but I am having trouble translating that into a PDF form. Below is what I would do on a website to get it to work:


      function check() {

      var i = document.getElementById('response');

      if(i.value === 'correct')

      {i.style.color = 'red'}


      {i.style.color = 'black'}



      I would then call the function on a button press. How would I translate this for a PDF Form. Any help would be GREATLY appreciated.