Javascript to select correct radiobuttons based on a field value in a table
I have a table of records that contains a field named "LeafType". The values in the LeafType field are either "Leaf (young)" or "Leaf (old)".
I have an Acrobat Form with a 2 button radiobutton Group named "LeafType". One button is named "Young", and the other button is named "Old".
How would I write a javascript to set (select) the appropriate button if getField('LeafType').value == "Leaf (young)" , or when getField('LeafType').value == "Leaf (old)"?
