You could also replace the popDialog and the return withCode: [Select]%this.setValue("");
%this.setValue("");
Probably a good idea to also remove the return.