Afternoon, looking for some help to get my date picker on the same row but keeping the drop-down functionality. I have build this before on another form but it was free-text and I no longer want free text. What am I missing here.
It is possible to chain some ^replace modifiers to the question_field_ keywords, but it’s unfortunately a bit fragile and you can end up breaking the rendering of those fields.
I think you’re better off using a Text Question and changing the input type to date so you get an <input type="date">.
You get a value from that in the format of YYYY-MM-DD so you can then use ^date_format modifiers to transform the output (in emails, etc) to whatever you need.
It should also adapt the appearance to the local version for the user, so, for example, in Australia we would see it displayed as DD/MM/YYYY when entering a value or selecting one from the datepicker. The field itself handles converting to the YYYY-MM-DD format for the actual value state.
Hi @isimmons, that’s great. Thanks very much for the advice and taking the time to get back to me. I will give this a try today and it solves my problem.
Ah ok but upon using that input type date, it uses a calendar date picker and works perfectly so might be ok. I have still to test the submissions etc. so will see how I get on. If there is any issues I know I can use what you have suggested.
Thanks for your help with this! I have finally been able to get test submissions working for this form. My old date field failed to print anything. I created the text field with the input changed so thanks again.
But, in the submission email data it appears as 2023-04-18, do I have to add the keyword modifier to my submission data:
%response_225853_q5^replace_keywords:notempty: Key date test: {response_225853_q5}%