use of loadValidItems to get code field items