formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

[Bug] Tabs Component: issue with validation

Open Aiso786 opened this issue 7 years ago • 20 comments

Hello guys,

As you can see on this JSFiddle, i have 2 tabs. The second one has a required field. I don't fill this required field, i leave it blank.

  • If i submit the form while being on the second tab --> i can't submit, so it's ok.
  • If i submit the form while being on the first tab --> the form is submitted, it's a bug.

Can you please help ?

Aiso786 avatar Dec 17 '18 09:12 Aiso786

This is a serious issue, please help.

Aiso786 avatar Dec 20 '18 15:12 Aiso786

We will add this to our development backlog for next week.

travist avatar Dec 20 '18 15:12 travist

Thank you @travist

Aiso786 avatar Dec 20 '18 15:12 Aiso786

@Aiso786 We have tested this issue on the latest version of formio.js.

Validation is working correctly https://jsfiddle.net/78t1mzjx/ .

Could you verify you are using the latest version of formio.js v3.10.0?

jeriah-formio avatar Dec 20 '18 17:12 jeriah-formio

Hello @jhen1422 On your example, it's working because you provided the Url to the form's json and the validation is done on server side.

If you look at this https://jsfiddle.net/j9tod3ev/, i have taken the json from your example and i've provided it to the "createForm" method. The validation is now done client side and the issue is reproduced.

I'm trying to fix the issue by myself but it isn't easy.

Aiso786 avatar Dec 21 '18 11:12 Aiso786

@Aiso786 Thank you for the clarification.

As Travis mentioned, we have added this to our developer backlog

jeriah-formio avatar Dec 21 '18 16:12 jeriah-formio

Hello guys, any news ?

Aiso786 avatar Jan 09 '19 16:01 Aiso786

We have not been able to get to this yet. If you need this fixed very soon, there is an option to pay us to expedite the fix. Please reach out to [email protected] if you want to go down that route.

travist avatar Jan 10 '19 15:01 travist

Hello, faced the same issue as well. Not a crucial one for us. Just pointing out that @Aiso786 is not the only one awaiting for the fix.

Lastik avatar Jan 24 '19 23:01 Lastik

Hi guys, any news about this issue?

mrcportillo avatar Feb 21 '19 17:02 mrcportillo

Hi, we seriously need this bug fixed... Any news?

ghost avatar Feb 22 '19 08:02 ghost

Hello All,

As noted by Travis, this is on a developer list to be done. If you need this fixed very soon, there is an option to pay us to expedite the fix. Please reach out to [email protected] if you want to go down that route. We will gladly accept a pull request if someone would like to fix it.

Thanks, William Gay Developer Support

wag110894 avatar Feb 22 '19 15:02 wag110894

Hi, William! Thx for your clarification. And thx to all of you for making such an amazing product! It's not about rushing ;) . I guess me and other guys were just willing to find out the current status of the issue in your roadmap (not just 'done', 'to be done someday') :). As I understand, some misunderstanding happened because of @travist message. He told that it will be included to backlog for the next week. And I guess you have underestimated the complexity of the issue. But it is not clear from your message, whether the issue is currently in progress, will be in progress in a month or maybe will be implemented only by some enthusiast via pull request, and you are not into it because this issue has low priority. Task priority is one more useful attribute which could be used by customers and I think everyone would really appreciate if you could include it to your responses to future questions similar to this one. By the way, is it possible for your team to publish some updatable roadmaps to prevent some of the annoying questions like this (e.g this sprint: tasks list, features list; next sprint: tasks list, features list)?

For the others awaiting for the issue resolution. @Claudiomerli @mrcportillo @Aiso786 you cold try rolling back to angular-formio version 3.5.0, or to formiojs version 3.6.13 (if you are using pure non-angular one). This version is free of this bug. Good luck!

Lastik avatar Feb 22 '19 18:02 Lastik

So we did determine based on how many people are needing this resolved that this was a high priority item for us to fix. Here is the commit that should resolve this problem.

https://github.com/formio/formio.js/commit/4d91601239820ea563f27748f78513aa5779f4ae

This will be in the 3.16.0 build.

travist avatar Feb 23 '19 21:02 travist

Thank you!

ghost avatar Feb 26 '19 13:02 ghost

Thank you very much guys.

Aiso786 avatar Feb 26 '19 14:02 Aiso786

cmon guys, i'm v3.18.3 and still have same error!!!

rended avatar Apr 01 '19 08:04 rended

inap

rended avatar Apr 01 '19 08:04 rended

@rended https://github.com/formio/formio.js/issues/1249 And here's a gist of the Tabs.js version that works.

bohan avatar Jun 20 '19 12:06 bohan

@rended

cmon guys, i'm v3.18.3 and still have same error!!!

I am not sure if you noticed, but this whole project is Open Source, so fixing these types of things is a community effort. Please feel free to roll up your sleeves and debug the problem. We also provide support packages for those who need issues like this expedited to meet their project deadlines. We are here to help, but also depend on community effort to keep things moving and civil.

travist avatar Jun 20 '19 14:06 travist