Step Counter on Form Wizard

Post Reply
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Step Counter on Form Wizard

Post by rmcdonald »

First of all great work on the early release thanks!!

First Bug report for you - the step counter on the form wizard is counting all tabs on the form instead of only the visible tabs.

For example our entity has 9 tabs in total but to the user only 3 of those tabs are visible when adding a record but the steps are showing step 1 of 9 instead of step 1 of 3
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Step Counter on Form Wizard

Post by support »

File from archive replace in folder where app is installed. Click CTRL+F5.
Now if tab is hidden by access rule or hidden in public form then it will be excluded.
But note: if type is hidden by visibility rules then it's still included in form and will be included in steps. Form wizard conflicted with dynamic tabs.
Attachments
form_wizard_fix.zip
(15.69 KiB) Downloaded 63 times
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Re: Step Counter on Form Wizard

Post by rmcdonald »

Great that fix worked thanks !
StuartB_75
Posts: 227
Joined: 24 Sep 2018, 23:22
Name: Stuart B
Location: Manchester UK

Re: Step Counter on Form Wizard

Post by StuartB_75 »

Hi, thanks for the update
I've noticed there might be another bug in the Form Wizard when the there is a nested entity involved.
I've a form that has 4 tabs, required forms on each and a nested entity on the third tab. The wizard works well until it gets to the third tab. All the fields are completed, including the fields in the nested entity. Even though I have filled in all the required fields, when I click 'Next' the form doesn't progress onto the fourth tab. When I manually click on the fourth tab, the wizard progresses and lets me complete the form.
Any suggestions on how to remedy it.
Many thanks
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Step Counter on Form Wizard

Post by support »

I did test with Nested Entity Form field and can't reproduce this issue. Check browser console. Probably there is js errors there.
StuartB_75
Posts: 227
Joined: 24 Sep 2018, 23:22
Name: Stuart B
Location: Manchester UK

Re: Step Counter on Form Wizard

Post by StuartB_75 »

I don't really understand the console very much, but I think these are the JS errors showing. Apologies if it's not what is needed:
jquery.validate.min.js:4

Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
at a.validator.escapeCssMeta (jquery.validate.min.js:4)
at a.validator.errorsFor (jquery.validate.min.js:4)
at a.validator.prepareElement (jquery.validate.min.js:4)
at a.validator.element (jquery.validate.min.js:4)
at HTMLDivElement.eval (eval at <anonymous> (jquery-1.10.2.min.js:4), <anonymous>:24:62)
at Function.each (jquery-1.10.2.min.js:4)
at e.fn.init.each (jquery-1.10.2.min.js:4)
at Object.onNext (eval at <anonymous> (jquery-1.10.2.min.js:4), <anonymous>:23:56)
at HTMLAnchorElement.next (jquery.bootstrap.wizard.js:67)
at HTMLAnchorElement.dispatch (jquery-1.10.2.min.js:5)
escapeCssMeta @ jquery.validate.min.js:4
errorsFor @ jquery.validate.min.js:4
prepareElement @ jquery.validate.min.js:4
element @ jquery.validate.min.js:4
eval @ VM240:24
each @ jquery-1.10.2.min.js:4
each @ jquery-1.10.2.min.js:4
onNext @ VM240:23
next @ jquery.bootstrap.wizard.js:67
dispatch @ jquery-1.10.2.min.js:5
v.handle @ jquery-1.10.2.min.js:5
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Step Counter on Form Wizard

Post by support »

Looks like conflict in JS somewhere. Can you send me your database in Personal Msg?
If so I will try to reproduce issue with your configuration.
StuartB_75
Posts: 227
Joined: 24 Sep 2018, 23:22
Name: Stuart B
Location: Manchester UK

Re: Step Counter on Form Wizard

Post by StuartB_75 »

Many thanks. Will send in PM
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Step Counter on Form Wizard

Post by support »

I have checked your database and form wizard can't work with dynamic tabs that can be off/on by visibility rules.
All steps should be active once form open.
Post Reply