Problems with "Dependant" base Forms in Editor 1.9.5
Problems with "Dependant" base Forms in Editor 1.9.5
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
Can you provide more information, please, as there's little to go on here. Also, it appears to be working as expected here - setting the office to "XXX" changes the salary field. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.
Cheers,
Colin
Let me check this again on my end. I can only say that it happens only on my Android 10 mobile phone while from the desktop both 1.9.4 and 1.9.5 work OK. Your example worked fine on my phone
I checked this again and it works ok with 1.9.5.
Excellent, thanks for reporting back,
Colin
Hi Colin,
I have bad news again.
I did try to go back and forth with 1.9.4 and 1.9.5 and there is a problem only with the tables/Editors using Dependant.
I can not put my finger on the problem but the Editor will not Fire the Submit with 1.9.5 vs no issues with 1.9.4. I'm using Bootstrap4 so maybe it is something related to a change you did in the CSS/JS /Buttons integration ?
I can share the code part if needed.
I'm not seeing in this example here - which uses BS. Can you link to your page so we can see the problem, please? Or update my previous example, please - as we'd really need to see this occur to be able to debug it,
Colin
Colin,
You can try to login to:
https://www.micasabook.com/mbloginv2.php
with Colin1234! for both User and Password.
Than, go to "Properties", choose the first one and try to Add a new "Bill Pay" of the Type Insurance in the the Dependant Category. You will notice that you can not do "Submit". This is now running Editor 1.9.5 and with Previous version it did not happen.
Elan
Sorry again. It looks that it is working after all with 1.9.5 . My apologies
I do see a problem based on the client side cofiguration.
It works on Android 10 with Explorer. But not On MacOS Catalina v 10.15.5 with FireFox 82.0.2.
So to my opinion there is some kind of a problem with Editor 1.9.5 & Dependant
Have you done a cache clear on your Mac Firefox browser? I don't have a Mac with me at the moment I'm afraid, but I'll try later on.
Allan
Yes I have cleared the cache. Does it work for you on some platform?
I also have the same problems with Chrome on Windows 10.
I can switch back to Editor 1.9.4 if this will help you to understand something
With you now! Yes, I'm also seeing it in Firefox Linux. It is actually expected behaviour because the "Category" field is still in the processing state (which stops the submission from happening).
The issue is that Editor doesn't know your
dependent()
methods have finished what they need to do. To do that you just need to addcallback();
to your various functions - e.g.:Allan
Thank you.
I'm trying this in a few minutes, but I can tell you for sure that in Editor 1.9.4 it was no required.
Elan
I'm getting other errors with the callback(); in place.
Uncaught TypeError: r is undefined
n https://www.micasabook.com/v2/Editor-1.9.0/js/dataTables.editor.min.js:54
each jQuery
n https://www.micasabook.com/v2/Editor-1.9.0/js/dataTables.editor.min.js:54
<anonymous> https://www.micasabook.com/v2/mb/web/mbuploadsinglehomes.php:9660
dependent https://www.micasabook.com/v2/Editor-1.9.0/js/dataTables.editor.min.js:55
It is enough that I switch back to Editor
1.9.4 and no callback(); is needed.
Hi Elan,
You are correct. From the 1.9.5 release notes:
It was considered a bug that you could submit a form while its dependent actions were still processing.
Regarding the
r is undefined error
- could you usecallback({});
instead - apologies the object shouldn't have been required but looks like it is.Allan
Thank you again for your support.
This solved the issue.
Elan