Because copy and paste bring the font size and type with it I want to create a script that change it
I tried to make happen at the "exit" function of the the field as follow :
form1.TestPage.Subform1.TextField1.font.size = "10pt";
form1.TestPage.Subform1.TextField1.font.typeface = "Myriad Pro";
I also tried a button that find all field by modifying a script that I found on line but it doesn't work for me:
function ProcessTextEdit(oField)
{
}
function ProcessAllFields(oNode)
{
if (oNode.className == "subform" )
{
// Look for child fields.
for (var i = 0; i < oNode.nodes.length; i++)
{
var oChildNode = oNode.nodes.item(i);
ProcessAllFields(oChildNode);
}
}
else if (oNode.className == "field")
{
switch (oNode.ui.oneOfChild.className)
{
case "textEdit":
if(oNode.parent.className == "Subform")
{
form1.TestPage.Subform1.TextField1.font.size = "10pt";
form1.TestPage.Subform1.TextField1.font.typeface = "Myriad Pro";
}
}
}
}
No luck. Any suggestions?