[Solved] Umbraco Form DataPicker not holding date
# help-with-umbraco
c
V13.6.0 UF13.4.0 After recent upgrade from 13.5.2 to 13.5.3 client has reported not receiveing dates in emails sent from UF DatePickers. Decided to upgrade to 13.6.0 & UF13.4.0 but the problem remains. The form is added as a macro from an RTE and, the scripts are not excluded and the page also has the following scripts embedded:- When using the form in the front end the console shows the error below when setting a date. It is the same whether using the default theme or a custom theme. Has anyone else come across this or have any clues where to look? Thanks https://cdn.discordapp.com/attachments/1336326781086470255/1336326781367746571/image.png?ex=67a366cc&is=67a2154c&hm=a8b50705ba598f01b35b2037a3eea9e2528b28dbe63f4d00a735db6a5dbfdca7&
l
Is it the same issue as this? (Don't think so, but I thought I'd mention it anyway :)) https://github.com/umbraco/Umbraco-CMS/discussions/18213#discussioncomment-12054186
c
I see where you're coming from but my issue isn't a Content Delivery API issue. I suspect I may not have downloaded the lastest UF fieldTypes (just thought of it!).
s
v13.5.2 to v13.5.3 won't cause any javascript difference https://github.com/umbraco/Umbraco-CMS/compare/release-13.5.2...release-13.5.3 I don't think this is related to your upgrade, maybe to how you deploy or something, not sure what else might have changed apart from the upgrade.
r
I just posted about the exact same issue before i saw your post. Experiencing this now, not very long after upgrade to 13.4.0. no solution in sight for me though. Any luck on your end @Craig100 ?
l
Did you clear your project and rebuild? Did you clear your browser cache or disabled caching in the developer toolbar?
r
Yes to all of the above. No luck 🙁 Tried uninstalling and reinstalling forms, no difference there. Tried backing the versions but got a migration state error there so haven't been able to fully try that
c
Been busy on another project I'm afraid. Will get back to it tomorrow maybe.
s
Not sure what is going on for you two, but I tried it out on a clean Umbraco 13.6 with Forms 13.4 installed on both bootstrap-horizontal and default theme I don't know about custom themes, not sure if there's been recent required updates. Make absolutely sure that in all of your
.csproj
files, the versions of
Umbraco.Cms
is 13.6.0 and
Umbraco.Forms
is 13.4.0. If you are referencing any other
Umbraco.Cms
packages in your
.csproj
files, make sure they're all on 13.6.0 as well. And, as suggested: - Delete
/bin/*.*
- Delete
/obj/Debug/*.*
(or
obj/Release/
or whatever is there just not the files directly in
/obj
but delete all folders in there) And then do a build and run. https://cdn.discordapp.com/attachments/1336326781086470255/1337029214792318996/image.png?ex=67a5f4fd&is=67a4a37d&hm=b2b4082f04c9a28df4f166e10a5e7094f845cda5e213346630de1616ee6125e4& https://cdn.discordapp.com/attachments/1336326781086470255/1337029215048175627/image.png?ex=67a5f4fd&is=67a4a37d&hm=4dbf8aaa4bc0b19237f8c35495f54b3b6f87df3a0c0ca197e863805fcac9835b&
r
Thank you, Sebastian. Going to double check everything and maybe start a fresh project to see if there could be any obvious differences
So I can't see exactly what the difference is, but i did end up solving it by downloading the latest available fieldtypes for umbraco forms and replacing the markup in my theme's datepicker, and reapplying whatever classes i had in the previous one. I'm no longer getting the error after this and the date shows as expected in the backoffice
@Craig100 fyi^
c
Thanks, will try soonest and let you know if it fixes my issue as well.
l
I really find custom themes where you copy Umbraco Forms files tricky because of this 😛
c
That just worked for me too. I must have had an old verion in there which finally gave up the ghost when V13.6.0 dropped. Anyway, we're all working now 🙂
12 Views