if ($debug) Debug.write("[answerPoll:oninit] this: ",this); if (this.pollTypeId==1){ //Debug.write("Yes/No Question"); this.pollboolean.setAttribute('visible',true); } else if(this.pollTypeId==2) { //Debug.write("Numeric Question"); this.pollnumeric.setAttribute('visible',true); } this.head.setAttribute('text',this.createdBy+" "+canvas.getLabelName(36)); if (parent.pollTypeId==1){ this.parent.vote.pollvalue = Number(parent.pollboolean.getValue()); } else if (parent.pollTypeId==2){ this.parent.vote.pollvalue = Number(parent.pollnumeric.getValue()); } this.parent.vote.pollTypesId = parent.pollTypeId; this.parent.vote.doCall(); return parent.pollvalue; return parent.pollTypesId;