Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Suggestion: Add an example of emitting code for button #68

Open
abhimanusharma opened this issue Nov 12, 2020 · 0 comments
Open

Suggestion: Add an example of emitting code for button #68

abhimanusharma opened this issue Nov 12, 2020 · 0 comments

Comments

@abhimanusharma
Copy link
Contributor

abhimanusharma commented Nov 12, 2020

Hi,

I was looking at: http://vue-form-builder.sethphat.com/form-config

Instead of making post request with form action I want to post the formInput via emitting method.

I have done:
emit-code-form-builder

Trying to emit that method like:
form-render-emit-code

EDIT:

mounted() {
            this.$formEvent.$on("submit-form", value => {
                console.log("FormEventBus");
                console.log(value);
            })
        },

Tried above but did't work.

After click on submit button, it should call the "saveFormData" method.

I want to submit some custom field along with the form also had to send Auth-Token, so need the custom method to submit the data.

commno

My previous approach was to have a custom button on the render page, the submit the data with that but that will not check validations on form renderer. I have to run multiple loops to make that happen. So now I think its better to have button from the form builder and call the method using emit-code.

Please enlighten me O great one!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant