phuocng

Results 173 comments of phuocng

Thanks for reaching out. Can you give me the version of Bootstrap 4 you're using? Also, a minimal code that can produce the issue is better for me to fix...

You can do this with [reset](https://formvalidation.io/guide/api/reset-form) method: ~~~ javascript // Create a FormValidation instance when your modal is open const fv = FormValidation.formValidation(yourForm, { ... }); ~~~ When the modal...

I think you're missing something here. Can you give me the sample code? In the meantime, I'll try to create a simple example using Bootstrap 4 modal.

@pnkFloyd I created this [example](https://github.com/form-validation/examples/blob/master/integration-select2/bootstrap.html#L128) which uses `resetForm` method to reset the form. It works as expected. https://user-images.githubusercontent.com/57786711/141763344-f9530e5e-2f83-4eef-b1ed-d79a648b8bd8.mp4

That's really nice catch, @7iomka 👍 The issue was fixed in the latest code. I will include the fix in the next release.

@7iomka The issue is fixed in [v1.10.0](https://formvalidation.io/updates/). Please upgrade.

@piernik I will add a warning in the `console` in the next version. Thanks for the suggestion.

There is no way to set _global_ options at the moment.

The `Declarative` plugin doesn't watch the attributes and it doesn't update the options when they're changed. You can use the [updateValidatorOption() method](https://formvalidation.io/guide/api/update-validator-option/).