Trigger form validation

Thanks for this, but my on-success event does not work if I add dmxx-bind to the action. This code does not work:

<form method="post" dmx-on:success="varStep.setValue(2);" is="dmx-serverconnect-form" id="serverconnectform1" dmx-bind:action="varStep.value &lt; 4 ? 'api/utils/just_success' : '/'api/income/AddIncomeStep1'">

This works:

<form method="post" dmx-on:success="varStep.setValue(2);" is="dmx-serverconnect-form" id="serverconnectform1" action="/api/income/AddIncomeStep1">

But then I can’t do the multi part form

You have an extra single quote in the dmx-bind:action ternary.

1 Like

thanks @mebeingken - some typo… fixed now!

1 Like

Hi there. I also tried this. However, I don’t know how to code and it seems not going to the next page. :frowning: