combining javascripts
Can someone tell me how to combine these three scripts so they will function as one? Each script functions but I'd like to have them work like this, the alignment would be set to left when Item.1 is visible and return to align center when hidden.
First script:
var f = this.getField("Item.1");
f.display = (f.valueAsString=="") ? display.hidden : display.visible;
Second script:
var f = this.getField("Item.1");
f.alignment = "center";
Third script:
var f = this.getField("Item.1");
f.alignment = "left";
Is this possible? Thank you.
