addElement('autocomplete', 'vendorId', array_merge([ 'label' => 'Vendor', 'dataUrl' => $this->getVendorAutocompleteUrl(), 'title' => $this->getVendorAutocompleteTitle(), 'placeholder' => 'Autocomplete field', 'description' => 'Please enter DBA Name or Legal Business Name' ], $options)); } public function getVendorAutocompleteUrl() { return $this->_vendorAutocompleteUrl; } public function setVendorAutocompleteUrl($url) { $this->_vendorAutocompleteUrl = $url; return $this; } public function getVendorAutocompleteTitle() { return $this->_vendorAutocompleteTitle; } public function setVendorAutocompleteTitle($title) { $this->_vendorAutocompleteTitle = $title; return $this; } }