BTW, if you want to go for an easier option you ca...
# suitescript
m
BTW, if you want to go for an easier option you can just validate the field change and if it's invalid popup a warning "You have selected a parent customer. Please chose the child instead.."