react icon indicating copy to clipboard operation
react copied to clipboard

Is it possible to use custom API url for nested form component call?

Open StephSince93 opened this issue 5 years ago • 1 comments

I am wanting to redirect to my API with different params, but I haven't had any luck. I'm not sure if this is something that can be done.

I found the Formio.setBaseUrl and Formio.setProjectUrl functions, but that is just for the domain name.

StephSince93 avatar Jul 30 '20 15:07 StephSince93

What you can do is disable the default submission events by setting the url={formUrl} instead of src={formUrl}. Then listen for the onSubmit event and send the data wherever you would like.

randallknutson avatar Jul 31 '20 15:07 randallknutson

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold