@TomG @EricT Can you also maybe help me out with another question regarding to this topic? I would like to have my calendar displayed in a way that weeks are starting on Monday instead of on Sunday. How can I adapt this in the most easy way? I tried already different options but so far none of them seems to work? A screenshot of the Javascript would be very helpful!Thanks in advance!
I believe that’s my problem. I don’t know how to use the ‘locales’ or where (onload, onready or unload) and how to paste them correctly in Javascript. I always get an error of an invalid Javascript.
Hello @MattiasM Thank you for your reply. Yes I’m aware I can use this date-pickers, although they are not that suited for my respondents since it takes a lot more time to go through this calendars compared to just entering their date of birth.Enjoy your Friday afternoon! Anna
@TomG I pasted this into the Javascript under Onload function. However it’s not working. Can you help me out with this?var cleave = new Cleave('.input-element', { date: true, delimiter: '/', datePattern: ['Y', 'm', 'd']});
@TomG Thanks for your reply! I did what you advised and also pasted this into the survey header <script src="https://cdn.jsdelivr.net/npm/cleave.js@1.6.0/dist/cleave.min.js"></script><script src="cleave.min.js"></script><script src="cleave-phone.{country}.js"></script>But nothing changes to the format of the text field.
Hi @TomG I formatted everything like you advised me (thanks!) but it’s still not doing anything… Any other things I can try? Thanks in advance!Anna
@Tom_1842 it works! Thank you so much!
Hi @TomG I came back to my survey after working on other projects and now the flatpickr isn’t working anymore. Has there been an update or something that might have caused this? Thanks in advance!
I have selected “classic lay-out”This is pasted in the javascript of the header (contains also a code for a date format for another question)<link href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" rel="stylesheet" /><script src="https://cdn.jsdelivr.net/npm/flatpickr"></script><script src="https://cdn.jsdelivr.net/combine/npm/flatpickr@4,npm/flatpickr@4/dist/l10n/nl.min.js"></script><link href="https://npmcdn.com/flatpickr/dist/themes/material_red.css" rel="stylesheet" type="text/css" /><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/cleave.js@1/dist/cleave.min.js"></script> And this is what the javascript of the questions looks likeThanks!
It worked out! Thank you!
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.