/** * Function to build the form * * @return None * @access public */ public function buildQuickForm() { CRM_Utils_System::setTitle(ts('Settings - Mapping and Geocoding Providers')); $map = CRM_Core_SelectValues::mapProvider(); $geo = CRM_Core_SelectValues::geoProvider(); $this->addElement('select', 'mapProvider', ts('Mapping Provider'), array('' => '- select -') + $map, array('onChange' => 'showHideMapAPIkey( this.value );')); $this->add('text', 'mapAPIKey', ts('Map Provider Key'), NULL); $this->addElement('select', 'geoProvider', ts('Geocoding Provider'), array('' => '- select -') + $geo, array('onChange' => 'showHideGeoAPIkey( this.value );')); $this->add('text', 'geoAPIKey', ts('Geo Provider Key'), NULL); parent::buildQuickForm(); }