Forum

Thread tagged as: Problem, Forms

Forms: Select items not showing in response

Hi,

I have a form with three

input type="select"

to enter a date of birth.

All my other input types are returning their values in the Form Responses. These aren't.

TEMPLATE


<perch:label for="fp_dob_day">Date of birth</perch:label> <perch:input type="select" id="fp_dob_day" options="01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31" /> <perch:input type="select" id="fp_dob_month" options="01,02,03,04,05,06,07,08,09,10,11,12" /> <perch:input type="select" id="fp_dob_year" options="2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979,1978,1977,1976,1975,1974,1973,1972,1971,1970,1969,1968,1967,1966,1965,1964,1963,1962,1961,1960,1959,1958,1957,1956,1955,1954,1953,1952,1951,1950,1949,1948,1947,1946,1945,1944,1943,1942,1941,1940,1939,1938,1937,1936,1935,1934,1933,1932,1931,1930,1929,1928,1927,1926,1925,1924,1923,1922,1921,1920,1919,1918,1917,1916,1915,1914,1913,1912,1911,1910,1909,1908,1907,1906,1905,1904,1903,1901,1900" />

Diagnostics

~~~

PERCH INFORMATION

Perch: 2.8.32 Production mode: Production (100) Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_forms (1.8.3) DB driver: PDO DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (360), perch2_content_items (92), perch2_content_regions (48), perch2_forms (2), perch2_forms_responses (11), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (8), perch2_pages (48), perch2_resource_log (214), perch2_resource_tags (0), perch2_resources (73), perch2_resources_to_tags (0), perch2_settings (11), perch2_user_passwords (0), perch2_user_privileges (30), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1) Users: 1 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', ); Editor plug-ins: markitup H1: 421aa90e079fa326b6494f812ad13e79 L1: 1a5d2cada03c0c8dafac0c4157a7f125 F1: 2edba60ed1f613d6dd804feb202456a2 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.8.29: done latest_version: 2.8.15 on_sale_version: 2.8.32 update_2.8.32: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: ipb PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: kintore-way PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: ian.buchanan@gmail.com PERCH_EMAIL_FROM_NAME: Ian Buchanan PERCH_LOGINPATH: /perch PERCH_PATH: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore/perch PERCH_CORE: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore/perch/core PERCH_RESFILEPATH: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore/perch/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_PARANOID: PERCH_FORCE_SECURE_COOKIES: PERCH_PASSWORD_MIN_LENGTH: 6 PERCH_MAX_FAILED_LOGINS: 10 PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR PERCH_VERIFY_UPLOADS: PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS

PHP: 5.6.10 Zend: 2.6.0 OS: Darwin SAPI: apache2handler Safe mode: not detected MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ MySQL server: 5.5.42 Free disk space: 832.57 GB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysql, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, yaz, mcrypt, gettext, pgsql, pdo_pgsql GD: Yes ImageMagick: No PHP max upload size: 32M PHP max form post size: 32M PHP memory limit: 128M Total max uploadable file size: 32M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes HTTP_HOST: ians-imac.local:5757 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 HTTP_REFERER: https://ians-imac.local:5757/perch/core/settings/diagnostics/ HTTP_VIA: ians-imac.local:5757 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_COOKIE: cmsa=1; PHPSESSID=f293232c0ba2098ba4aee97ba3c1b67c HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36 HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_CACHE_CONTROL: max-age=0, no-cache, no-store, must-revalidate HTTP_CONNECTION: keep-alive PATH: /usr/bin:/bin:/usr/sbin:/sbin SERVER_SOFTWARE: Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/5.6.10 mod_ssl/2.2.29 OpenSSL/0.9.8zh DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 SERVER_NAME: localhost SERVER_ADDR: ::1 SERVER_PORT: 8888 REMOTE_ADDR: ::1 DOCUMENT_ROOT: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore SERVER_ADMIN: you@example.com SCRIPT_FILENAME: /Users/ianbuchanan/Documents/Unnamed Site 2/kintore/perch/core/settings/diagnostics/index.php REMOTE_PORT: 63618 GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.1 REQUEST_METHOD: GET QUERY_STRING: extended REQUEST_URI: /perch/core/settings/diagnostics/?extended SCRIPT_NAME: /perch/core/settings/diagnostics/index.php PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1479304749.03 REQUEST_TIME: 1479304749 argc: 1 ~~~

Ian Buchanan

Ian Buchanan 0 points

  • 4 years ago

Try adding the label attribute to the fields:

<perch:input type="select" id="fp_dob_day" label="Birth Day" options="01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31" />

<perch:input type="select" id="fp_dob_month" label="Birth Month" options="01,02,03,04,05,06,07,08,09,10,11,12" />

<perch:input type="select" id="fp_dob_year" label="Birth Year" options="2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979,1978,1977,1976,1975,1974,1973,1972,1971,1970,1969,1968,1967,1966,1965,1964,1963,1962,1961,1960,1959,1958,1957,1956,1955,1954,1953,1952,1951,1950,1949,1948,1947,1946,1945,1944,1943,1942,1941,1940,1939,1938,1937,1936,1935,1934,1933,1932,1931,1930,1929,1928,1927,1926,1925,1924,1923,1922,1921,1920,1919,1918,1917,1916,1915,1914,1913,1912,1911,1910,1909,1908,1907,1906,1905,1904,1903,1901,1900" /> 

This is used in the admin and email output of the field - not shown on the page

Drew McLellan

Drew McLellan 2638 points
Perch Support

That would be my suggestion, too.

Many thanks, that's fixed it.

Ian