Support the ongoing development of Laravel.io →
Forms Validation
Last updated 2 years ago.
0

I have patched it with this:

$('form').on('submit', function(e){
    if( !$('#price_per_day-toggle input').is(':checked') ){
        $('#price_per_day-controls .price_per_day-item input').removeAttr( "name" );
    }
})

It checks if the rent is checked. If it is not checked, then it removes attribute name from input fields causing problems.

Maybe there is a problem in how laravel receives input from array.

Anyone got a better suggestion?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mabasic mabasic Joined 3 Feb 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.

© 2024 Laravel.io - All rights reserved.