Got an error "RangeError: Maximum call stack size exceeded"

Hello

I've got the same error message as below.
But I don't know where my issues are.

I got this error when I press the submit button in the form on browser.

And this is an error message I've got.
ă‚čクăƒȘăƒŒăƒłă‚·ăƒ§ăƒƒăƒˆ 2020-09-17 16.09.01

Please provide a link where we can check this.

thanks,

Please go to http://174.138.46.199/create_a_new_event/

(now I removed security provider enforcer)

Sorry - when exactly do you see this error i see a multi-step form there?

I saw this error when I press the submit button, which is the end of multi steps form.

What is this action added on your form and what’s its purpose?

dmx-on:submit.prevent="serverconnectform1.submit()"

this is for this multi-step form submit to the database.

I don’t think this event should be there. Please remove it.

ok then, should I add “submit” on the button itself (btn10)? how about other dynamic events “error” and “success”? should I add them on the button “btn10”?

Your form should be submitted by a button. Add a button and set its type to Submit. That’s how you submit a form.

Ok, I try it!

I did this

<button id="btn10" class="btn btn-primary" type="submit"
		dmx-on:click="run({run: {action:`serverconnectform1.submit();serverconnectform1.reset();browser1.goto(\'/search/\');toasts1.show({message: \'Your contest application has been successfully submited!\', delay: 500000})`,name:'submit'}})">SUBMIT</button>

but, I don’t know how to capture an error on this button. and the browser jumped to /search/ without submitting inputs. how can I solve this?

But this makes no sense.
Either use a submit button OR use a regular button and run your flow. You can’t have both. IF you want to use flow, just set the button type to regular.

1 Like

oh I see
ok then, if I use a regular button with work flow, how can I capture error from server action? I don’t know how to set after “Condition”?

I could submit the form finally, thank you so much!