Hi
I would like to name the surveys in my Inbox based on the week number.
Is it possible to extract the week number from the current date and use it as part of the instance_name?
Thank you,
Hayley
Solved! Go to Solution.
Hi Hayley,
Yes, I'm seeing the same issue in the creation of the form XML file. You can work around it by using another date format (say, '%M'); after the form processing is completed, you can manually substitute '%W' for '%M' in the XML file and then publish. I'll file an issue to have the form validator accept '%W'.
Hi Hayley,
The Survey123 mobile application supports %W to provide the ISO week number.
Thanks James. Could you give me the syntax? I'm trying:
format-date(${my_date},'%W')
but getting an '"unrecognized escape in date format string" error.
Thank you
Hi Hayley,
Yes, I'm seeing the same issue in the creation of the form XML file. You can work around it by using another date format (say, '%M'); after the form processing is completed, you can manually substitute '%W' for '%M' in the XML file and then publish. I'll file an issue to have the form validator accept '%W'.
Brilliant thank you. The workaround works great!