Forum

How to edit View Form

Posted in CategoryGeneral
  • ander07
    Ander07 07   ( User ) 5 months ago

    Hello All

    I wana remove required validation from Client form for

    Name,

    sale price,

    Purchse price. Please help.

  • Denis
    Denis Duliçi   ( Admin ) 5 months ago

    I'm sorry Ander07 but that is not possible.

  • jayadev
    Jayadev Kv   ( User ) 5 months ago

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

     

  • jayadev
    Jayadev Kv   ( User ) 5 months 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
    Ajmal KK   ( User ) 5 months 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.