I have this two fields one is Normal String the other One is Boolean, I am failing to get the boolean value from API but the string and integer I can get.
public function __construct($options = null)
{
parent::__construct('event_billing_partner');
$this->options = $options;
$this->add(array('name' => 'PartnerName', 'type' => 'text', 'options' => array('label' => 'Name'), 'attributes' => array('required' => 'required')));
$this->add(array('name' => 'ChargeValidation', 'type' => 'text', 'options' => array('label' => 'Charge Validation'), 'attributes' => array('required' => 'required')));
}
public function getInputFilter()
{
if (!$this->inputFilter) {
$inputFilter->add($factory->createInput(array('name' => 'ChargeValidation', 'required' => true, 'validators' => array(), 'filters' => array(array('name' => 'StripTags'), array('name' => 'StringTrim')))));
$inputFilter->add($factory->createInput(array('name' => 'PartnerName', 'required' => true, 'filters' => array(array('name' => 'StripTags'), array('name' => 'StringTrim')))));
$this->inputFilter = $inputFilter;
}
}