I am using TCPDF to create fillable PDF forms. Example 14 shows how to use javascript to check for empty textfields in the completed PDF and after the user clicks the print button. Does anyone know how to use javascript for validating email, phone number or numbers only textfields? Or how to use javascript to sum two textfields? Tested code examples would be greatly appreciated as I am new to TCPDF. Many Thanks, Tim
After 18 years I ran across the same problem! I use TCPDF with example # 3 Custom Header and Footer. I tried lots of different methods and wasted many hours in the process. Finally I changed the code to: // Page footer public function Footer() { // Position at 15 mm from bottom $this->SetY(-25); // Set font $this->SetFont('helvetica', 'I', 8); // Page number $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); $this->Ln(10);...
After 18 years I ran across the same problem! I use TCPDF with example # 3 Custom Header and Footer. I tried lots of different methods and wasted many hours in the process. Finally I changed the code to: // Page footer public function Footer() { // Position at 15 mm from bottom $this->SetY(-25); // Set font $this->SetFont('helvetica', 'I', 8); // Page number $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); $this->Ln(10);...