Support the ongoing development of Laravel.io →
Forms Validation

How can I validate dynamically created form fields. My form structure is

{{ form::text('works[0]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[0]["title"]','',array('class'=>'text_field form-control')) }}

after dynamically added it will become this

{{ form::text('works[0]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[0]["title"]','',array('class'=>'text_field form-control')) }}

{{ form::text('works[1]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[1]["title"]','',array('class'=>'text_field form-control')) }} . . . {{ form::text('works[n]["company"]','',array('class'=>'text_field form-control')) }} {{ form::text('works[n]["title"]','',array('class'=>'text_field form-control')) }}

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

anilbad anilbad Joined 16 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.