First of all, if you have the #2 field as "text" vs. "hidden" the user can manipulate it. So if you want specific values for that field, make it a hidden field.
Now, as far as determining the "text" for #1 (you don't actually want the value since the value is the option value part), you'd write something like this:
So...you want to use the selectedText property. If it were me personally, I'd write it to a variable so I can follow along later.
Something like:
Code:
var selectedItem = document.(your form name).print.options.selectedIndex; // this returns the number (0, 1, 2) that corresponds with the item you've selected from the form box.
var selectedText = document.(your form name).print.options[selectedItem].selecctedText // This will read the text portion from the selected item, which is the part you want to compare.
From here, you'd just check to see if selectedText was equal to "Full Wrap". If it was, then your "pn" field would be "wrap". Otherwise, it'd be "441".
As far as the #3 scenario goes, you could do this a few ways:
1) When "Full Wrap" is selected, regenerate the list box so that only the "No" option is available in the first place (i.e. delete the "Yes" option) and vice versa.
2) When the form is processed on the server-side (assuming it is), have an if condition stating that "if the Full Wrap is selection, the More field value can only be no."
Personally, I'd find #2 easier and since some people have JS disabled for security reasons, you've got a workaround for them too.[/code]