1 Reply Latest reply on Jul 19, 2016 9:54 PM by George_Johnson

    change font & font size in all text fields

    omanbux Level 1

      hi, i want to change font & font size in all text fields. I have tried bellow code but it change the font size but didn't change the font. can u pls help me. thanks..

      font - Courier New

      font size - 10

       

      // Loop throught the fields in the document

      for (var i = 0; i < numFields; i++) {

                    // Get a reference to the current field

      var f = getField(getNthFieldName(i));

                    // Change the properties of certain types of fields

      switch(f.type) {

        case "text":

      f.textFont = font. Courier New; 

      f.textSize = 10; 

       

      }

      }