Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

How to edit View Form

Ander07 07   ( User )

Commented 7 years ago

Hello All


I wana remove required validation from Client form for


Name,


sale price,


Purchse price. Please help.

Denis Dulici   ( Admin )

Commented 7 years ago

I'm sorry Ander07 but that is not possible.

Jayadev Kv   ( User )

Commented 7 years ago

Need to remove item sku required validation. How can i do that ? This is a much needed modification


 

Jayadev Kv   ( User )

Commented 7 years ago

You just need to add an empty array as next parameter. Just like


    {{ Form::textGroup('name', trans('general.name'), 'id-card-o', []) }}


I think the same applies to his query also

Ajmal KK   ( User )

Commented 7 years ago

To remove required validation from Client form, you need to remove it from the attribute part of app/Providers/FormServiceProvider.php,


For text group


Form::component('textGroup', 'partials.form.text_group', [


            'name', 'text', 'icon', 'attributes' => [], 'value' => null, 'col' => 'col-md-6',


 


        ]);


or you can customize the attributes asper your need.

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions