Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom action url setted in the client #19

Closed
batusai513 opened this issue Jun 30, 2016 · 3 comments
Closed

custom action url setted in the client #19

batusai513 opened this issue Jun 30, 2016 · 3 comments

Comments

@batusai513
Copy link
Contributor

Hi, right now we are exploring the possibility to add form.io into our app, but we need to set the form endpoint dynamically (based on some id) within out client side application, and we were wondering if it is posible set the form endpoint or action in the client side app using this library?

@randallknutson
Copy link
Contributor

randallknutson commented Jun 30, 2016

Currently this can be set as part of the form definition passed to the form.

If you are using the src attribute (<Formio src="myformurl">) then set the Custom Action Url in the form.io interface.

If you are passing the form directly into the form definition (<Formio form={myformObject}>) then set myformObject.action to the url you want to submit to. You can see the code for this at https://github.com/formio/react-formio/blob/master/src/Formio.jsx#L210-L213

@batusai513
Copy link
Contributor Author

@randallknutson thank you so much man, this really helps me a lot.

@randallknutson
Copy link
Contributor

No problem!

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

No branches or pull requests

2 participants