billok-lab
4 months ago
376
2
Laravel

custom form validation

Posted 4 months ago by billok-lab

hello guys, I need some help on my project

so here's the thing, on my blade I have field that has to be hide or show depends on dropdown selected. Then on my FormRequest I made some validation to my form that all the field has to be required. so the problem is, when I select the dropdown field, the other field that hide also be required. What I want to do is how can I make the field that is required just the field that shows based on the selected dropdown?

any help please

Please sign in or create an account to participate in this conversation.