J
jsniemi79
Guest
I am still having issues getting this to display the value in my picklist. I have two sets of addresses on my screen: I populate the shipping address section, then hit my Same as Shipping button. The regular inputs are copied as expected, but the state does not get updated. If I click on the state under the billing address, it defaults to Nebraska, so it appears to be getting the code correctly, just not the text value. Here is the code I am using to set these values: $(document).ready(function() { $("#myButton").click(function() { myAddress1 = rbf_getFieldValue("streetAddr1"); if (myAddress1 != '') { rbf_setFieldValue("billing_address1", myAddress1); rbf_setFieldDisabled("billing_address1", true); } myAddress2 = rbf_getFieldValue("streetAddr2"); if (myAddress2 != '') { rbf_setFieldValue("billing_address2", myAddress2); rbf_setFieldDisabled("billing_address2", true); } myCity = rbf_getFieldValue("city"); if (myCity != '') { rbf_setFieldValue("billing_city", myCity); rbf_setFieldDisabled("billing_city", true); } myCountry = rbf_getPicklistCode("country"); if (myCountry != '') { rbf_setPicklistCode("billing_country", myCountry); } myState = rbf_getPicklistCode("state"); if (myState != '') { rbf_setPicklistCode("billing_state", myState); } myZIP = rbf_getFieldValue("zip"); if (myZIP != '') { rbf_setFieldValue("billing_zip", myZIP); rbf_setFieldDisabled("billing_zip", true); } }); });
Continue reading...
Continue reading...