Replies: 6 comments 4 replies
-
|
No ideas till 3 weeks? |
Beta Was this translation helpful? Give feedback.
-
|
Same problem in Form Component: Conditional validation only works when we use form prefix: |
Beta Was this translation helpful? Give feedback.
-
|
any solution? |
Beta Was this translation helpful? Give feedback.
-
|
#6614 This PR should fix this, if you want to test it while Caleb decide if it's ok to merge it |
Beta Was this translation helpful? Give feedback.
-
|
Still encountering this issue in Livewire 3.5.0. I have a form component and my test is failing any |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried to create a "public function messages()" with the rules in the function executing the validation. Please refer to the attached screen shots for what I am referring to. Also, please note that I am NOT using a "required_if" rule. `` public function addPayment($id) `` |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using Livewire 3 for tests and it seems that if I put inside the
FormComponentRules like:It seems that it does not work properly. When I
dd($this->form);inside thePostLivewire component I see all fields from form...Currently I have
<select>inside form, which is responsible for showing/hiding fields in it depending on<select wire:model="type">value:<x-forms.select-option :options="$types" wire:model.live="type" required/>Implementation how I show fields inside Component:
The inputs with rule value
required_if:shows an error like :The text field must be a string.when I switch, to thetypethat shouldn't be taken into consideration.This is how I done checking:
F.e. I want to see 2 values passed to component, but I see all of them (let's say 5), with
nullvalue (filled inputs are okay with values).In past Livewire versions, when I initialize
$rules = [ ]array in single all things was working. Now with new version, when I want to separate theformlogic and validation, problems come.Beta Was this translation helpful? Give feedback.
All reactions