Hi, If that item is not selected, `formContext.getAttribute(‘cos_joblevel’).getSelectedOption()` will be null, and then calling `text` will cause the error you see, it is recommended to be like what `Mehdi El Amri` said First judge whether it is null . If this helped you, I’d appreciate it if you’d mark this as a Verified Answer, which may in turn help others as well. Best Regards, Frank Gong