Recent Topics

action not defined in form with post method

  • i am in admin/catalog/products/create route. here i am in the view file with a form. i see in the form the post method is described as below

    <form method="POST" action="" @submit.prevent="onSubmit">
    here i dont see any route in the action. i think a vue function called onSubmit is doing the submiting procedure but i couldnt find any vue scripts in that particular view file..
    so where is these submitting procedure are being handled. also view_render_event concept is not clear to me.. i see few view_render_event was used in the view page. for example

    {!! view_render_event('bagisto.admin.catalog.product.create_form_accordian.configurable_attributes.controls.after') !!}

    i thought these events are responsible for the vue scripts handling the form but i couldn't find any files corresponding to the view_render...

    please help to find the file where this forms post method to the route is handled

  • Hello there,

    Thanks for reaching us, We will surely resolve your issue.

    Whenever this form is submitted, this function is called, route is defined here

    And with the help of view_render_event you will be able to add your custom html means if you want to add css in anothers package's view file you can do it with the help of this event.

    Let me know if you have any further query. We are here to help you.

    Thanks !

Log in to reply