Skip to content

Releases: aerni/statamic-livewire-forms

v6.1.0

28 Jul 20:36
Compare
Choose a tag to compare

What's new

  • Adds support for the Hidden fieldtype. It's basically a shortcut to using a text field with show: false.

What's fixed

  • Fixed field conditions. This bug was introduced in v5.0.0. You should upgrade to this version to fix it.

What's improved

  • Hide form groups that don't contain any visible fields. Like when using the Hidden fieldtype or conditions.
  • Better alignment of checkbox and radio fields when displayed inline.

v6.0.0

18 Jul 23:03
Compare
Choose a tag to compare

What's new

  • You can now override messages like the form submit button and success message on a per form level. This is super useful, as you don't have to create a custom form component anymore to change a simple message string.

What's improved

  • The validation.php language file is now merged into the messages.php file

What's breaking

  • If you've published the language files, you'll have to manually migrate to the new structure. Simply publish the language files again and copy-paste the strings in question.

v5.1.0

18 Jul 18:38
Compare
Choose a tag to compare

What's fixed

  • Fixed showstopper because of accidentally changed method visibility
  • Fixed form reset on submission if the form doesn't contain a captcha field

What's improved

  • Improved field views by making field labels smaller when there is no instruction

v5.0.0

17 Jul 23:21
d2861e3
Compare
Choose a tag to compare

What's fixed

  • The captcha response is no longer saved to form submissions

What's improved

  • Field property methods are now executed on demand, allowing for dynamic use. This is helpful if you change a field property like options in the hydratedFields callback.
  • Make the inline_label property translatable
  • Make the show, view, and wire_model_modifier properties configurable through the form blueprint
  • Make the input_type property of Integer fields configurable

What's breaking

  • All field property methods are now protected. If you've accessed properties using their methods like defaultProperty(), you can simply remove Property and use default() instead.
  • If you've changed the view of a field through the @formField blade directive, you should remove fields., e.g. instead of 'view' => 'fields.nameInput' it should now be 'view' => 'nameInput'.

v4.0.0

14 Jun 08:46
adcb25a
Compare
Choose a tag to compare

What's new

  • Adds the ability to autoload custom components by form handle. Example: {{ livewire:form handle="contact" }} will load App\Http\Livewire\ContactForm.php if it exists. (#18)

Upgrade Guide

Required

  • Make sure your custom components extend Aerni\LivewireForms\Http\Livewire\BaseForm

Optional

The following changes are only necessary if you want to use the new autoloading capabilities.

  • Ensure your custom components end with Form, e.g. rename Contact to ContactForm.
  • Change your template to use the default form component, e.g. use {{ livewire:form handle="contact" }} instead of {{ livewire:contact }}.
  • You can safely remove the public string $handle property from your component.
  • If you've set the $view and $theme property, exchange them with protected static $VIEW and protected static $THEME.

v3.4.0

27 May 15:14
Compare
Choose a tag to compare

What's new

  • Added support for the Toggle fieldtype. This is super useful for single checkbox fields like terms and conditions.

What's improved

  • Labels and legends are now available for screen readers even if a field has show_label: false. This only applies to newly created themes. Feel free to copy-paste the field stubs into your existing themes.

v3.3.0

25 May 18:40
ceaa845
Compare
Choose a tag to compare

What's fixed

  • Fixed mail attachments (requires Statamic 3.3.12+)
  • Fixed an issue that wouldn't let you select a new file in an asset field with max_files: 1
  • Asset fields are now reset after the form has been submitted

What's new

  • Required Statamic 3.3.12+

v3.2.0

17 Mar 23:02
Compare
Choose a tag to compare

What's new

  • Added support for Laravel 9

v3.1.0

17 Mar 18:46
Compare
Choose a tag to compare

What's new

  • Added support for Statamic 3.3

v3.0.0

21 Jan 15:32
Compare
Choose a tag to compare

What's new

  • Added support for field conditions. Go nuts!
  • Added support for the assets fieldtype.
  • Complete refactor introducing a whole bunch of new concepts and customization options like themes, components, hooks, callbacks, and more. Make sure to read the docs.

What's breaking

  • Dropped support for PHP 7.4
  • Changed the form parameter on the component to handle.
  • The component view now defaults to default and not the handle of the form anymore. Use the view parameter on the component to use a different view.
  • You now need a theme. Run php please livewire-forms:theme to create one.
  • There are lots of breaking changes in the form views. Migrate your old views to the views in the theme you just created.
  • There are probably other changes as well. Just make sure to read the docs and follow the instructions. It should be pretty easy to upgrade.