2
Hi,
As a work around I added code to the formtext.php file so that if the right field is passed into the form I do the correct popoup. Something like this
le="color: #000000"><?php if( $this->getName() == 'MyField' ) { return "<input type='text' name='".$this->getName()."' id='".$this->getName()."' size='".$this->getSize()."' maxlength='".$this->getMaxlength()."' value='Click Here to Change Field' onClick='clearText();window.open("/Selections/MyFieldLauncher.htm","WindowName","location=0,status=0,scrollbars=0,menubar=0,resizable=1,width=493,height=655")' />"; } elseif( $this->getName() == 'MyField2' ) { // Do MyField2 input statement } else { // default formtext.php input field. return "<input type='text' name='".$this->getName()."' id='".$this->getName()."' size='".$this->getSize()."' maxlength='".$this->getMaxlength()."' value='".$this->getValue()."'".$this->getExtra()." />"; }
clearText is a one line javascript routine to clear the field onClicking in it.
le="color: #000000"><?php function clearText() { if (document.userinfo.MyField.value == 'Click Here to Change Field') { document.userinfo.Myfield.value = "" ; } }