Issue rotating radiobutton
I have a script that inserts 3 radiobuttons on each page of a document. The buttons get placed properly with the correct styles and attributes, except for the rotation:
rFld.rotation = 90;
The first radio button widget in each group gets properly rotated, but not 2 and 3. I have tried setting the widget property manually using .# to no avail.
Is there something special about the rotation?
function AddPMGFields(page_num)
{
var i = page_num;
var rFld = this.addField("Approval"+(i+1), "radiobutton", i, [725, 60, 735, 50]);
this.addField("Approval"+(i+1), "radiobutton", i, [725, 137, 735, 127]);
this.addField("Approval"+(i+1), "radiobutton", i, [725, 212, 735, 202]);
rFld.exportValues = ["Approved", "As Noted", "Resubmit"];
rFld.style = style.ch;
rFld.rotation = 90;
rFld.lineWidth=0;
rFld.required = true;
rFld.fillcolor=color.transparent;
rFld.strokecolor=color.transparent;
rFld.borderStyle = border.s;
}
try {
for (var i = 0; i < this.numPages; i++)
{
AddPMGFields(i);
}
}
catch(e)
{
app.alert("Processing error: "+e)
}
