Skip to content

Releases: nette/forms

Released version 3.1.2

10 Feb 22:24
@dg dg

Choose a tag to compare

  • added Container::getUnsafeValues(), onValidate does not throw warning [Closes #266]
  • fixed validation after 1592cf6 [Closes #268]
  • added Form::initialize() for standalone forms
  • added FormFactory & DI service

Released version 3.1.1

04 Feb 15:28
@dg dg

Choose a tag to compare

  • phpDoc: fixed event type hints [Closes #265]
  • Revert "Form::onValidate - values are passed only when form is valid"
  • Latte: added more comments /* line */
  • FormMacros: internal variables are prefixed $ʟ_

Released version 3.1.0

19 Jan 02:27
@dg dg

Choose a tag to compare

  • requires PHP 7.2

Features

  • Form: POST form checks Http\Request::isSameSite() as CSRF protection
  • Guess first parameter for event by type hint (#219)
  • Container::getValues($obj) to hydrate object

Changes

  • Form::getValues() triggers warning when form is not valid
  • Form::getValues() returns only controls in scope (BC break)
  • Form::onValidate - values are passed only when form is valid
  • Validator Form::URL autocompletes https:// instead of http:// (BC break)
  • Validator::validateEqual returns false if control value is empty array (BC break) [Closes #257]
  • Validator::formatMessage() added validator name to error message (#263)
  • breaks exporting rules to JS after non-static validator [Closes #259]
  • FormMacros: removed deprecated $_form
  • Container: addImage() renamed to addImageButton()
  • Checkbox: getSeparatorPrototype() renamed to getContainerPrototype()
  • removed deprecated stuff

Released version 2.4.11

06 Nov 00:26
@dg dg

Choose a tag to compare

compatible with PHP 8.0

Released version 3.0.7

02 Nov 17:46
@dg dg

Choose a tag to compare

  • compatible with PHP 8.0
  • examples: added Latte example
  • netteForms: added parameter 'event' to toggle()
  • netteForms: parameter srcElement is passed to Nette.toggle() even during initialization (possible BC break)
  • netteForms: removed hasOwnProperty() check
  • netteForms: added variable Nette.invalidNumberMessage with error message #252
  • netteForms: avoid checking of invalid number in nested validateControl() #252

For the details you can have a look at the diff.

Released version 3.0.6

16 Jul 09:44
@dg dg

Choose a tag to compare

  • {formPrint} more compact output
  • {formPrint} is selectable
  • FormMacros: added {formContext}
  • strict fix (#249)

For the details you can have a look at the diff.

Released version 3.0.5

06 Jun 13:43
@dg dg

Choose a tag to compare

  • CheckboxList: compact transmission mode in form name=val1,val2,val3
  • CsrfProtection: auto-starts session before form is rendered #239
  • Container: detects property type of mapped class
  • Validator::validateNumeric() accepts unsigned integer #246
  • Rules::getIterator() moves BLANK before FILLED #233
  • Rules::getToggleStates() synced with netteForms.js toggleControl
  • netteForms: fixed toggleControl(), synced with validateControl()
  • Rules::validate() $emptyOptional is always false in BLANK condition
  • Container::addHidden Allow any type so it works same as setDefaultValue (#245) BC break!
  • Latte: prints {label/}

For the details you can have a look at the diff.

Released version 3.0.4

20 Apr 13:17
@dg dg

Choose a tag to compare

  • FormMacros: added {formPrint $form}
  • netteForms: added mime-type validation #173
  • netteForms: image validator accepts image/webp
  • SelectBox, MultiSelectBox: added setOptionAttribute()
  • Container::getValues('array') propagates arrays to inner containers only when mappedType is not set
  • Validator::validateInteger() returns false when integer is too big
  • DefaultFormRenderer: options 'class' & 'id' are used for 'control' part when 'pair' part is empty
  • DefaultFormRenderer: supports option 'nextTo' & style 'control .multi'
  • renders correctly Nette\Utils\IHtmlString in data-nette-rules #243
  • getLabel() removed return type void #241
  • FormsExtension: uses $initialization

For the details you can have a look at the diff.

Released version 3.0.3

02 Jan 16:53
@dg dg

Choose a tag to compare

  • HiddenField: added setNullable() and addFilter() #171
  • HiddenField: value is not converted to string #152
  • UploadControl: automatically sets MAX_FILE_SIZE #238
  • UploadControl: addRule() checks upload_max_filesize limit
  • Rules: added removeRule()
  • Form: added setHtmlAttribute()
  • BaseControl: supports setHtmlAttribute('name')
  • Validator::formatMessage() label is translated using form translator (#237)
  • added .phpstorm.meta.php
  • readme: info about netteForms.js

For the details you can have a look at the diff.

Released version 3.0.2

19 Nov 18:09
@dg dg

Choose a tag to compare

  • supports PHP 7.4
  • Validator::formatMessage() Fixed using label placeholder in validation rule with Html label (#235)
  • throwing exceptions from __toString() is allowed since PHP 7.4
  • some fixes

For the details you can have a look at the diff.