pagemedia
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 fields
Form
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 properly
form.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 #189
columns
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