This seems to be working
function hikashopHandleCases(obj){
if(obj.name=='data[order][user_choice]'){
var hide = new Array();
var show = new Array();
if(obj.id=='user_choice_activate_both'){
show.push('numberchoice')
hide.push('customtext_173_13_32_23');
hide.push('accountname');
hide.push('billingaddress');
hide.push('phone_number');
hide.push('carrier');
hide.push('account_number');
hide.push('pin');
hide.push('ssn');
hide.push('esnnumber');
hide.push('mobile_serial_lock_code');
hide.push('iqaccount');
}else if(obj.id=='user_choice_activate_plan_other_phone'){
show.push('numberchoice')
hide.push('customtext_173_13_32_23');
hide.push('accountname');
hide.push('billingaddress');
hide.push('phone_number');
hide.push('carrier');
hide.push('account_number');
hide.push('pin');
hide.push('ssn');
show.push('esnnumber');
show.push('mobile_serial_lock_code');
hide.push('iqaccount');
}else if(obj.id=='user_choice_activate_plan_iq_phone'){
hide.push('numberchoice')
hide.push('customtext_173_13_32_23');
hide.push('accountname');
hide.push('billingaddress');
hide.push('phone_number');
hide.push('carrier');
hide.push('account_number');
hide.push('pin');
hide.push('ssn');
hide.push('esnnumber');
hide.push('mobile_serial_lock_code');
show.push('iqaccount');
}
else if(obj.id=='user_choice_activate_phone'){
hide.push('numberchoice')
hide.push('customtext_173_13_32_23');
hide.push('accountname');
hide.push('billingaddress');
hide.push('phone_number');
hide.push('carrier');
hide.push('account_number');
hide.push('pin');
hide.push('ssn');
hide.push('esnnumber');
hide.push('mobile_serial_lock_code');
show.push('iqaccount');
}
}
switchFields(show,hide);
}
what i am trying to do is when they select that they want to keep their number i want them to see these fields
show.push('customtext_173_13_32_23');
show.push('accountname');
show.push('billingaddress');
show.push('phone_number');
show.push('carrier');
show.push('account_number');
show.push('pin');
show.push('ssn');
the other fields that are currently being viewed from the selection would also show. this part of this project is killing the deadline... hopefully it's something simple..