I am trying to make a form that has rows of book title, isbn no, and price.
I have setup a combo box for the book title list. I have then setup text boxes in the same row for isbn and price. I want to autfill the isbn and price boxes corresponding to the book title entered.
I have set up the following array.
var oTitle = {
"French book": [ ["1234567890123","None"]],
"German book": [ ["9876543210123","None"]],
"Song book": [ ["1231234567890","None"]],
"Italian book":[ ["1239876543210","None"]]
};
When the book title is committed, it runs the following script that puts relevant isbn,price in the isbn box.
var lst = oTitle[event.value];
if( (lst != null) && (lst.length > 0) )
this.getField(cRowName + ".isbn").value = lst;
else
{
this.getField(cRowName + ".isbn").value = 0;
}
How do I split the isbn and price and put them in the correct boxes?
I am using acrobat 9 pro.
You can then access them and set the field values like: