public function insertBrick(HTML_QuickForm2_Container $form) { $el = $form->addText('tax_id')->setLabel($this->___("EU VAT Id (optional)"))->addRule('regex', $this->___('Invalid EU VAT Id format'), '/^[A-Za-z]{2}[a-zA-Z0-9\\s]+$/'); if (!$this->getConfig('dont_validate')) { $el->addRule('callback2', '-error-', array($this, 'validate')); } if ($this->getConfig('required')) { $el->addRule('required', $this->___("Please enter EU VAT Id")); } }
public function getIntegrationFormElements(HTML_QuickForm2_Container $group) { $group->addText('unsub_list_id')->setLabel(array('<span class="required">* </span>' . ___('ArpReach List Unsubscribe Id'), ___('required value') . '<br/>' . ___('you can get it from ArpReach Unsubscribe form'))); }
public function insertBrick(\HTML_QuickForm2_Container $form) { $form->addText('_wordpress_nickname')->setLabel($this->___('Nickname'))->addRule('required'); }
public function insertBrick(HTML_QuickForm2_Container $form) { $phone = $form->addText('phone')->setLabel($this->___('Phone Number')); if ($this->getConfig('required')) { $phone->addRule('required', ___('Please enter %s', $this->___('Phone Number'))); } }