Forum

How to edit View Form

Posted in CategoryGeneral
  • Ander07 07    ( User ) 3 years ago

    Hello All


    I wana remove required validation from Client form for


    Name,


    sale price,


    Purchse price. Please help.

  • Denis Duliçi    ( Admin ) 3 years ago

    I'm sorry Ander07 but that is not possible.

  • Jayadev Kv    ( User ) 3 years ago

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


     

  • Jayadev Kv    ( User ) 3 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 ) 3 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.