title: How to pass a parameter to PdfAction.JavaScript(jscode, stapmer.Writer)
body: <pre><code>// test
  AcroFields form = stamper.AcroFields;
  var fields = form.Fields;
  var fieldKeys = form.Fields.Keys;
  foreach (string fieldKey in fieldKeys)
  {
      if (fieldKey.Contains("timeholder"))
      {                    
          float[] fieldPos = form.GetFieldPositions(fieldKey);
          var fieldLlx = fieldPos[1];
          var fieldLly = fieldPos[2];
          var fieldUrx = fieldPos[3];
          var fieldUry = fieldPos[4];
          Rectangle recTime = new Rectangle(fieldLlx, fieldLly, fieldUrx, 
              fieldUry);
          PushbuttonField btnTime = new PushbuttonField(stamper.Writer, recTime, 
              "post");
          PdfAnnotation timeButton = btnTime.Field;
  
          timeButton.Action = PdfAction.JavaScript(
              "var date = this.getField(\"03 Time timeholder\"); date.value = new 
              Date().toLocaleTimeString();", stamper.Writer);
          stamper.AddAnnotation(timeButton, 1);
      }
  }
  </code></pre>
  
  <hr>
  
  <p>The above codes work properly, my question is 
  how to use fieldKey to replace "03 Time timeholder", the following is a segment of javascript.</p>
  
  <p>"var date = this.getField(\"03 Time timeholder\"); date.value = new Date().toLocaleTimeString();"</p>
  
  <p>Thanks in advance.
  Tony</p>