Forum

Thread tagged as: Problem, Error, Forms

User Friendly Label For Hidden Fields With Perch Forms

I'm using Perch Forms along with a hidden field to pass a value to the forms app. It works great except for the user-facing label in the control panel and the email are using the ID instead of the specified label attribute.

<perch:input id="consultantEmail" value="<perch:forms id="emailTo" />" type="hidden" label="Consultant" />

Perch Runway: 3.0.12
Production mode: Production (100)
Installed apps: content (3.0.12), assets (3.0.12), categories (3.0.12), perch_forms (1.10)
DB driver: PDO
DB tables: perch3_backup_plans (1), perch3_backup_resources (0), perch3_backup_runs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_collection_index (1917), perch3_collection_items (126), perch3_collection_revisions (25), perch3_collections (3), perch3_content_index (0), perch3_content_items (0), perch3_content_locks (0), perch3_content_regions (0), perch3_forms (2), perch3_forms_responses (7), perch3_menu_items (12), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_routes (1), perch3_page_templates (13), perch3_pages (5), perch3_resource_log (1), perch3_resource_tags (0), perch3_resources (1), perch3_resources_to_tags (0), perch3_settings (24), perch3_user_passwords (0), perch3_user_privileges (34), perch3_user_role_buckets (0), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [
        'perch_forms'
    ];
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins:
H1: eda8957da36eddb8b88c3eba5693ce97
L1: 6a64d558911467b83176be6e87e86e99
F1: 3b606135b33e6a102526838f4152a807
headerColour: #000000
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.11
update_3.0.11: done
logoPath: /admin/resources/logo-colour.svg
headerScheme: dark
update_runway_3.0.11: done
latest_version:
on_sale_version: 3.0.12
dashboard: 0
sidebar_back_link: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
siteOffline: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
update_runway_3.0.12: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /Users/toby/Sites/cran_hse
PERCH_SCHEDULE_SECRET: sOvt3zsrQJf9iIdk
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: perch_cranhse_local
PERCH_DB_PREFIX: perch3_
PERCH_EMAIL_FROM: help@cranhse.co.uk
PERCH_EMAIL_FROM_NAME: Cranleigh Health and Safety
PERCH_EMAIL_METHOD: smtp
PERCH_EMAIL_HOST: secure.emailsrvr.com
PERCH_EMAIL_AUTH: 1
PERCH_EMAIL_SECURE: ssl
PERCH_EMAIL_PORT: 465
PERCH_EMAIL_USERNAME: toby@creativemonster.co.uk
PERCH_LOGINPATH: /admin
PERCH_PATH: /Users/toby/Sites/cran_hse/admin
PERCH_CORE: /Users/toby/Sites/cran_hse/admin/core
PERCH_RESFILEPATH: /Users/toby/Sites/cran_hse/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: UTC
PERCH_DEBUG:
PERCH_RUNWAY: 1
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_ASSET_VERSION: f704e7442d11292c99b5
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/toby/Sites/cran_hse/admin/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings
PHP: 7.0.20
Zend: 3.0.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
MySQL server: 5.6.35
Free disk space: 139.41 GB
Extensions: Core, date, 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, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, mcrypt, pgsql, pdo_pgsql, igbinary, memcached
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: chs.loc:8888
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://chs.loc:8888/admin/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.9,en;q=0.8
HTTP_COOKIE: cmsa=1; PHPSESSID=5c2b5a2531530760918b98d4bf8cada4
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: chs.loc
SERVER_ADDR: ::1
SERVER_PORT: 8888
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Users/toby/Sites/cran_hse
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/toby/Sites/cran_hse/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 55850
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1513607497.54
REQUEST_TIME: 1513607497
argc: 1
Toby Martin

Toby Martin 1 points

  • 3 years ago

Ah, if you place the label attribute before the value attribute then it works.

<perch:input id="consultantEmail" label="Consultant" value="<perch:forms id="emailTo" />" type="hidden" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that's because your nesting of tags is a bit of a hack.