|value_and_label
Twig filter to convert options to value/label pairsinclude_form_field()
to allow the second parameter to be an array of layoutsGravForm.config
JS to have correct current_url
and current_params
settingsprepare_form_fields()
#530prepare_form_fields()
and prepare_form_field()
to prepare form fields and field arrayinclude_form_field()
to get all include paths for the field typenonce
to a customizable field\r\n
line breaks + extraneous escaping in data.txt.twig
base64_encode
filter rather than functionde
language #510select
field with integer and boolean valuesfalse
#481Twig_SimpleFunction
codehidden
field (thanks @NicoHood)Form
in overridable field (thanks @NicoHood)client_side_validation
#482select
field in data template #475attributes
on form
, textarea
and checkbox
and buttons
. #447 #448file
fieldforce_bool
in toggle
field to be more robustdata.html.twig
and data.txt.twig
with field.store: false
force_bool: true|false
option to toggle
field to cast strings for use in BC situationsraw
format so you can use HTML in themname
attribute on buttons #411classes
option in avatar
fieldformdata.html.twig
#384#contact-us
)enctype
in multipart forms #408toggle
field not working with toggleable: true
$page->modular()
calltabs
field with a single tab in admintabindex
to global attributes of default fieldselect_optgroup
as select
can handle optgroups nowdump()
commandtemplates/forms/default
twig templates to make things more extensibletemplates/forms/layouts
set of twit templates to allow for easier customization1.2.3
Badly encoded JSON data
warning when uploading files grav#2663user-data://
stream #353eu
, fr
and pl
languageForm::initialize()
chainablefolder
option to save:
action with fallbackaccept
for SVG in file field #364files
fieldtextarea
field.copy-to-clipboard
which can be used by admin pluginrecaptcha_not_validated
property not being usedfile
field widget #119|t
translate filter in all fieldsGrav\Common\Iterator
(may have some backward compatibility issues with plugins, likely not)NestedArrayAccessWithGetters
(with '/' separator) and FormTrait
traitsview
, key
, ignore
, section
, toggle
, tabs
and tab
form fieldstoggleable
inputs, which can be disabled/enabled by user$grav['forms']
to allow plugins to better use forms #307datasets: store-state: true
set in the fieldsclear-state
AJAX taskclear_redirect_url
on a formForm::setMessage()
methodForm::getNonce()
call, only $form->getNonce()
works nowfield.html.twig
to work properlynonce.name
and nonce.action
inside the form YAMLhtml: true
support for form buttons (will not escape the button value)toggle
, tabs
and tab
form fieldssecurity@: admin.foobar
to any fieldformname
, uniqueid
and honeypot
non-inputs in form validationPageInterface
instead of Page
classmedia.upload_limit
referenceshidden
to ip
and timestamp
actionshidden
field logic to support value
or default
setmessages
object when using a redirect in formtextarea
and select
fieldsshouldProcessForm()
logicupload: true|false
processForm
implement FormInterface
field.size
in array
, select
, and textarea
file
field to make it more extensiblefield.classes
to form field to allow customizationfield.html.twig
selectize
, automatically selecting an unintended valueadd
to a file and don't provide filename
#324action: /path
inside the formfile
type input JSON valueUrl:post()
to get the $_POST
variable (allows common security checks/filtering for the POST data)select
set up as multiple
and with selectize: create: true
would not properly merge newly created values on rendering.Yaml
class to support Native + Fallback YAML librariesarray
fieldarray
fieldfile
& array
fieldform.keep_alive
option to keep session alive #275array
field for frontend useautocomplete
spec #274Uri::post()
autocapitalize
, inputmode
, and spellcheck
options in field definitionspagemedia
field available outside of pages contextdisplay_label: false
)file
fieldoptgroup
within select fieldfield.classes
support to display fieldpassword
fieldforms
instead of old form
fieldtimestamp
action to add a timestamp fieldonFormPrepareValidation
to allow some pre-processing before form validationpostfix
and dateraw
options to "Save" actionnest_id
boolean flag to fieldset
field to nest sub-fields with name of fieldsetspacer
fieldForm::setFields()
causing validation to fail on added and removed fieldsForm
page template for adminresolution
setting for images in file fieldresizeWidth
, resizeHeight
, resizeQuality
and updated Dropzone to latest versionsignature
fieldonPageProcessed()
event if page cache expires before form cache #2400
was not being set properly in File fieldfield.description
now translated and displays properlyform.php
plugin class for better readabilityform: process: - call: ['Class', 'method']
for custom form handlingswitch
to be treated as checkboxfile
in Display field. Allows the ability to read a file and output it, works in combination with |markdown
filterminlength
and maxlength
to Textarea field #231label
, help
, and description
when markdown: true
is set on fieldnovalidate: true
on form definition to turn off all HTML5 form validationform.status
error
#213error
#209required
attribute in individual checkboxes as it forces all to be checkedfilesize
option that falls back to PHP file upload limits by default #202http_response_code
and use it for form-messages.html.twig
(requires Grav v1.3.6+)@input: false
attributes to some non-display fields #189columns
and column
fields for controlled form layout$never_cache_twig = true
to improve form processing reliability #153Utils::getPagePathFromToken()
methoddata-*@
and config-*@
data
from a formtask
in button typesstep
to range field #136null
with session-based form$_POST
exists login #101file
fielddata.*.twig
templatesouterclasses
DIV if defined #135action:
. Super useful if you want to handle form processing on some other non-form page (or Ajax)template:
to use to render the form processing response.number
field so it works with min value 0
#130fieldset
form field #125conditional form field
to show fields only if some condition
is setPages::getPagesCacheId()
url
option for button fieldhoneypot
field not throwing exception properlysuccess
when requesting a form via Ajax. Form processing listeners should take care of setting status to something else__form-file-uploader__
POST field to better allow identifying them with AjaxSystem
> Twig
> Autoescape
is set to Yes
honeypot
field for form anti-spam protectionPage::slug()
for form name if not set in the form itself (better backwards compatibility)file
field. All files get uploaded via Ajax and are stored upon Submit. Fully backward compatible, file
field now includes also a limit
and filesize
option. The former determines how many files are allowed to be uploaded when in combination with multiple: true
(default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)email
field (add multiple: true
to enable)evaluate: true
keyname
form format like admin formsForms::getValue()
method to retrieve values programaticallydatetime
form field to simply extend text
until implementedprepend
and append
field attributes for Text inputrange
input field with min
and max
parametersscope
for form fields to allow fields to be excluded from the data by adding input@: false
to their definitionfor="id"
on label for checkboxfor
attribute in labelsREADME.md
nl2br
to correct place or will break for arraysfield.outerclasses
data.txt.twig
operation
param to allow different file saving strategiesprocess()
method during form processingfilename
instead of prefix
, format
+ extension
enable
in admin