# customify/2.3.0/core/interfaces/extended/Form.php

Customify, version 2.3.0. 70 lines.

- Page: https://pluginprobe.com/plugins/customify/2.3.0/code/core/interfaces/extended/Form.php
- Raw: https://pluginprobe.com/plugins/customify/2.3.0/raw/core/interfaces/extended/Form.php
- Modified: 2017-03-09T10:06:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/customify/2.3.0/code/core/interfaces/extended/Form.php#L10-L20`.

```php
<?php defined('ABSPATH') or die;

/**
 * @package    pixcustomify
 * @category   core
 * @author     Pixelgrade Team
 * @copyright  (c) 2013, Pixelgrade
 */
interface PixCustomifyForm extends PixCustomifyHTMLElement {

	/**
	 * @return static $this
	 */
	function addtemplatepath($path);

	/**
	 * @return PixCustomifyFormField
	 */
	function field($fieldname);

	/**
	 * @return static $this
	 */
	function errors($errors);

	/**
	 * @param string field name
	 * @return array error keys with messages
	 */
	function errors_for($fieldname);

	/**
	 * Autocomplete meta object passed on by the processor.
	 *
	 * @param PixCustomifyMeta autocomplete values
	 * @return static $this
	 */
	function autocomplete(PixCustomifyMeta $autocomplete);

	/**
	 * Retrieves the value registered for auto-complete. This will not fallback
	 * to the default value set in the configuration since fields are
	 * responsible for managing their internal complexity.
	 *
	 * Typically the autocomplete values are what the processor passes on to
	 * the form.
	 *
	 * @return mixed
	 */
	function autovalue($key, $default = null);

	/**
	 * @return string
	 */
	function startform();

	/**
	 * @return string
	 */
	function endform();

	/**
	 * @param string template path
	 * @param array  configuration
	 * @return string
	 */
	function fieldtemplate($templatepath, $conf = array());

} # interface

```
