-
- Fixed issue where
select
set up asmultiple
and withselectize: create: true
would not properly merge newly created values on rendering.
- Fixed issue where
-
- Switched to new Grav
Yaml
class to support Native + Fallback YAML libraries - Simple styling fixes for
array
field
- Switched to new Grav
-
- Fixed issue with translations of placeholder text in
array
field
- Fixed issue with translations of placeholder text in
-
- Added new
form.keep_alive
option to keep session alive #275 - Added
array
field for frontend use
- Added new
-
- Improving compatibility
autocomplete
spec #274
- Improving compatibility
-
- Including EXIF JS library in the modules dependencies to fix orientation when uploading images
-
- Fix HTML data template for checkboxes fields where 'use' property is "keys" #258
-
- Added support for
Uri::post()
- Added support for
autocapitalize
,inputmode
, andspellcheck
options in field definitions
- Added support for
-
- Fixed regression with select field, causing issues with filepicker field grav-plugin-admin#1441
-
- Make
pagemedia
field available outside of pages context - Added option on fields to disable displaying of label (
display_label: false
) - Moved Dropzone HTML into an overridable Twig template
- Added support for image upload delete in Dropzone
file
field
- Make
-
- Added support for
optgroup
within select field - Save forms only once (stops extra work being done)
- Allow file field to pass dropzone options
- Added datasets support to fields
- Added
field.classes
support to display field
- Added support for
-
- Removed overridden class in
password
field - Worked around forms being lost if form cache expired before page cache, see #240
- Fixed default form in dynamically created page if header uses
forms
instead of oldform
field - Escape placeholder text in default field
- Removed overridden class in
-
- Added support to save form data in raw format (yaml or json)
- Added new
timestamp
action to add a timestamp field
-
- Added event
onFormPrepareValidation
to allow some pre-processing before form validation - Added new
postfix
anddateraw
options to "Save" action
- Added event
-
- Added support for
nest_id
boolean flag tofieldset
field to nest sub-fields with name of fieldset - Added classes attribute to
spacer
field
- Added support for
-
- Fixed
Form::setFields()
causing validation to fail on added and removed fields
- Fixed
-
- Forced registration of
Form
page template for admin - Implemented support for
resolution
setting for images in file field - Implemented support for
resizeWidth
,resizeHeight
,resizeQuality
and updated Dropzone to latest version - Added a new
signature
field
- Forced registration of
-
- Force an
onPageProcessed()
event if page cache expires before form cache #240
- Force an
-
- Fixed an issue where unlimited size
0
was not being set properly in File field field.description
now translated and displays properly
- Fixed an issue where unlimited size
-
- Added toggle to enable/disable client-side HTML5 validation
- Added toggle to enable/disable inline-error messages
-
- Reformatted
form.php
plugin class for better readability
- Reformatted
-
- Fixed an issue with in-content Twig forms not working because forms were not initialized yet
-
- Added support for
form: process: - call: ['Class', 'method']
for custom form handling
- Added support for
-
- Fixed regression in v2.11.4: Call to a member function post() on null grav#1720
-
- Stopped Chrome from auto-completing admin user profile form grav#1847
- Start using composer to autoload classes
- Added support for
switch
to be treated as checkbox
-
- Fixed missing form submit in dynamically created pages
-
- Added support for
file
in Display field. Allows the ability to read a file and output it, works in combination with|markdown
filter - Added
minlength
andmaxlength
to Textarea field #231
- Added support for
-
- Added support for markdown in all form fields for
label
,help
, anddescription
whenmarkdown: true
is set on field
- Added support for markdown in all form fields for
-
- Added ability to set
novalidate: true
on form definition to turn off all HTML5 form validation
- Added ability to set
-
- Improved logic to handle dynamically added forms to be more reliable
- Added Dutch Translation #207
- Improved both HTML and JSON error output by utilizing
form.status
- Code Cleanup
-
- Fix AJAX response message and wrong status #211
- Escaped YAML to form save action to prevent parsing errors #206
- Fixed RU translations #204
- Fixed nonce check fail not setting status to
error
#213 - Fixed validation fail not setting status to
error
#209 - Catch ValidationException to avoid potential fatal error
- Fixed regression issue on reset fields
- Removed
required
attribute in individual checkboxes as it forces all to be checked - Security fix to ensure file uploads are not manipulated mid-post - thnx @FLH!
-
- Added ability to 'remember' field values in cookie between submissions #200
-
- Added back improved
filesize
option that falls back to PHP file upload limits by default #202 - Added missing file upload options into blueprints and language files
- Added the ability for a form to have an
http_response_code
and use it forform-messages.html.twig
(requires Grav v1.3.6+)
- Added back improved
-
- Improved Polish translation
-
- Added missing
@input: false
attributes to some non-display fields #189
- Added missing
-
- Fixed backwards compatibility issue with conditional field #188
-
- Moved messages output into partial to allow style overriding
- Logic cleanup
- Updated Italian and Russian translations
-
- Fixed a typo in the spanish translation #167
-
- Add default client-side validation for captcha, with error popup #139
- Added key observe for select
- Added Czech translation
-
- Force modular sub-pages with forms to set
$never_cache_twig = true
to improve form processing reliability #153 - Use new
Utils::getPagePathFromToken()
method
- Force modular sub-pages with forms to set
-
- Allow form item replacement in redirect location #144
-
- Fix regression with file uploads introduced in 2.5.0
-
- Support proper form handling with nested fields #141
-
- Added check for valid Grav forms before trying to create a form object
-
- Added the ability for front-end forms to use advanced blueprint features such as
data-*@
andconfig-*@
- Added support for dynamically added pages to process forms properly
- Added a new avatar field for displaying account avatar
- Added method to get all
data
from a form - Support
task
in button types
- Added the ability for front-end forms to use advanced blueprint features such as
-
- Added
step
to range field #136 - Added a new default ajax handler twig template
- Moved twig events to always process even if forms are not defined
- Some code cleanup
- Handle
null
with session-based form - Added support for append/prepend to number field
- Added
-
- Always process form events as long as a
$_POST
exists login #101 - Various fixes for
file
field - Allow manually added pages to process forms and upload files
- Fixed issue with nested fileds not showing up in
data.*.twig
templates
- Always process form events as long as a
-
- Only include
outerclasses
DIV if defined #135
- Only include
-
- Ability to process any form on any page via
action:
. Super useful if you want to handle form processing on some other non-form page (or Ajax) - Added the ability for the form to set the
template:
to use to render the form processing response.
- Ability to process any form on any page via
-
- Fix
number
field so it works with min value0
#130
- Fix
-
- Added new
fieldset
form field #125 - Added new
conditional form field
to show fields only if somecondition
is set
- Added new
-
- Better default output for select, checkbox and checkboxes fields in the form destination page and in the emails sent via form submit #121
-
- Reworked logic so form caching is based on
Pages::getPagesCacheId()
- Added
url
option for button field
- Reworked logic so form caching is based on
-
- Fixed issue with
honeypot
field not throwing exception properly
- Fixed issue with
-
- Optimistically set 'status' to
success
when requesting a form via Ajax. Form processing listeners should take care of setting status to something else
- Optimistically set 'status' to
-
- File uploads are now adding a
__form-file-uploader__
POST field to better allow identifying them with Ajax - Require jQuery when using the File field, as it's needed by the form.min.js file required in the file upload functionality
- File uploads are now adding a
-
- Translate the labels in data.html.twig getgrav/grav-plugin-comments#38
- Fixed file input when
System
>Twig
>Autoescape
is set toYes
-
- Added method to set all data in a form
- Added params to form action URL
- Added ability to add ids to buttons and to set them disabled
-
- Moved Files Upload GC logic to function in front-end only
-
- Added support for Grav's autoescape twig setting
- Allow to add additional markup fields in form and field twig overrides
- Updated the french language translation
-
- Forms now supports multiple forms per page!
- Access forms from any other page within the current page
- Instantiate forms directly in page content with Twig processing enabled
- New Twig function to get forms data from any other page
- Ability to use Twig in saved filename
- Reworked the
file
field. All files get uploaded via Ajax and are stored upon Submit. Fully backward compatible,file
field now includes also alimit
andfilesize
option. The former determines how many files are allowed to be uploaded when in combination withmultiple: true
(default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)
-
- Added several missing HTML5 form input field types #87
- Added Support for CSS id in form definition
-
- Added Romanian translation
-
- Fixed an issue with Recaptcha secret throwing errors #84
-
- Added support for multiple emails in
email
field (addmultiple: true
to enable)
- Added support for multiple emails in
-
- Fixed backward incompatibility with forms submission and data retrieval getgrav/grav#933
-
- When uploading a file through a form, if the file is already existing prepend the current day and time to the filename instead of overwriting it.
-
- Support
keyname
form format like admin forms - Added backwards compatibility for Captcha field
- Added 'markdown-notices' style output for better errors
- Added
Forms::getValue()
method to retrieve values programatically - Changed
datetime
form field to simply extendtext
until implemented - Updated french language
- Support
-
- Refactored the files upload logic
- Missing Language string
- Fixed errors not getting output
-
- Fix for autoescape in spacer and display form fields
- Fix issue with form reset action #66
-
- Added the HTML5
range
input field withmin
andmax
parameters
- Added the HTML5
-
- Allow to override classes in Form definition for the form element
- Add more blocks in the Form twig template, so classes can be overridden more easily in themes
- Reworked some fields to fit the new Admin
- Use
scope
for form fields to allow fields to be excluded from the data by addinginput@: false
to their definition - Added german translation
- Allow to add inline Twig to the form message definition
-
- Fixed the form action URL for home page forms
- Fix stopping form events propagation, correctly stop when one event is stopped
- Allow to translate the fields placeholders and the form message
- Fix captcha javascript function ordering. Also, render it in the site active language
- Support attribute
for="id"
on label for checkbox - Fix select fields with the multiple option enabled
- Fixed select options escaping with autoescape on - #502
-
- Allow placeholder for select field
-
- Use common language strings in blueprints
- Use
for
attribute in labels - Improved
README.md
- Code lint
-
- Moved
nl2br
to correct place or will break for arrays
- Moved
-
- Croatian translation
- Added id, style, and disabled options to select fields
-
- Allow adding form labels and help text as lang strings
- Allow translating field content
- Allow translating button and checkbox labels
- Allow adding classes to the form field container with
field.outerclasses
- Updated French translation
-
- Fixed error message on file upload
- Fixed overriding defaults for the file type in forms
-
- Updated languages
- Allow an action to stop processing
-
- Fix captcha validation
- Fix issue where Form was unsetting valid page
-
- New file upload field
- Added modular form template
- Spanish translation
- Hungarian translation
- Italian translation
-
- Server-side validation of forms #11
- Added french translation
- Added nonce form security
-
- Show a more meaningful error when the display page is not found
- Added links to learn site for form examples
- Label can be omitted
- Allow user to set the CSS class for buttons
-
- Fixed multi-language forms
- Checkbox is translatable
- Minor fixes
-
- New
operation
param to allow different file saving strategies - Ability to add new file saving strategies
- Now calls a
process()
method during form processing
- New
-
- Added server-side captcha validation and removed front-end validation
- Allow
filename
instead ofprefix
,format
+extension
-
- Fixed radio inputs