How to add date question on the multiple array?

  • gatinc
  • gatinc's Avatar Topic Author
  • Visitor
  • Visitor
4 years 3 months ago #98767 by gatinc
gatinc created the topic: How to add date question on the multiple array?
Hi,

How can I add a date on the following attached array?

Attachment familyinfo.lss not found



Attachment familyinfo.jpg not found



Can you help me please?
Attachments:

Please Log in to join the conversation.

More
4 years 3 months ago #98768 by Ben_V
Ben_V replied the topic: How to add date question on the multiple array?
Hello
add to the source of your question (or help field) something like:
<script>
$(function() { $( "#answer123X456X789SQ001_SQ001").datepicker();
});
</script>

You just have to replace "#answer123X456X789SQ001_SQ001" by the correct input ID

Tip: for date picker option settings have a look at api.jqueryui.com/datepicker/

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

More
4 years 3 months ago #98781 by DenisChenu
DenisChenu replied the topic: How to add date question on the multiple array?
Hi,

Ben_V wrote: You just have to replace "#answer123X456X789SQ001_SQ001" by the correct input ID

Youcan use {SGQ}, it's great for script.

answer123X456X789SQ001_SQ001 => answer{SGQ}SQ001_SQ001

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

  • gatinc
  • gatinc's Avatar Topic Author
  • Visitor
  • Visitor
4 years 3 months ago #98793 by gatinc
gatinc replied the topic: How to add date question on the multiple array?
hi,
I tried, but I could not do it. Can you add to the source of my survey? please..

Please Log in to join the conversation.

  • gatinc
  • gatinc's Avatar Topic Author
  • Visitor
  • Visitor
4 years 3 months ago #98796 by gatinc
gatinc replied the topic: How to add date question on the multiple array?
Thank you for your answer. its works. but i have one question. How can I change year in datepicker?

Please Log in to join the conversation.

  • gatinc
  • gatinc's Avatar Topic Author
  • Visitor
  • Visitor
4 years 3 months ago #98797 by gatinc
gatinc replied the topic: How to add date question on the multiple array?
I found it.
$(function() { $( "#answer597613X75X1104SQ1_SQ1").datepicker({ dateFormat: "dd/mm/yy",changeMonth: true, changeYear: true });

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!