Discussions
Adding Review and Submit Page Custom Fields to Shipping Method Page Not Quite Working
The netsuite checkout organization as it concerns custom fields isn't acceptable. I thought I had a workaround, but it's not working like it should.
The javascript below is what I used to add three of our custom fields from the review and submit page to our shipping method page. (I added this script in the checkout tab and substituted it for another block of code within a netsuite tag in the Tag Substitution area, after adding a span element with an ID of "shippage" to the "shipping method" text under Website>customize text):
<script type="text/javascript"> <!-- //Summary: add shipping fields from review and submit page to the shipping method page function addShipFields(){ if (document.getElementById('shippage')){ var nodeST=document.getElementById('submitter'); var newST=document.createElement('div'); newST.id="paynode"; //isresidential field newST.innerHTML='<table><tr><td nowrap="" align="right" valign="baseline" class="smalltextnolink"><span class="smalltextnolink" id="custbody_ava_is_residential_fs_lbl" style=""><a onmouseout="this.className='smalltextnolink'; " onmouseover="this.className='smalltextul'; return true;" onclick="return nlFieldHelp(707,'NONE_NEEDED','custbody_ava_is_residential', this)" style="cursor: help;" href="javascript:void("help")" title="What's this?" tabindex="-1" class="smalltextnolink">Is Residential</a> </span></td><td nowrap="" valign="baseline"><span style="position: relative; top: 2px;"><span id="custbody_ava_is_residential_fs" style="white-space: nowrap;"><input type="checkbox" id="custbody_ava_is_residential_fs_inp" name="custbody_ava_is_residential" onclick="setWindowChanged(window, true);document.getElementById('server_commands').src='/app/site/backend/setcheckoutvalue.nl?sc=4&redirect=none&custbody_ava_is_residential='+document.getElementById('custbody_ava_is_residential_fs_inp'.value?'T':'F');;" checked="" class="checkbox" value="T"><input type="hidden" name="custbody_ava_is_residential_send"></span></span></td></tr></table>'; //shipfromavaline field newST.innerHTML+='<span class="smalltextnolink" id="custbody16_fs_lbl" ><a onclick="return nlFieldHelp(707,'NONE_NEEDED','custbody16', this)" style="cursor: help;" href="javascript:void("help")" title="What's this?" tabindex="-1" class="smalltextnolink">Ship From Avaline?</a> </span><span id="custbody16_fs" style="white-space: nowrap;"><input type="checkbox" class="checkbox" id="custbody16_fs_inp" name="custbody16" onclick="setWindowChanged(window, true);document.getElementById('server_commands').src='/app/site/backend/setcheckoutvalue.nl?sc=4&redirect=none&custbody16='+(document.getElementById('custbody16_fs_inp').value?'T':'F');;" value="T"><input type="hidden"