Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Question Type : Time

Question Type : Time 2 Jahre 3 Wochen her #82924

  • amritdeep
  • amritdeeps Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 34
  • Karma: 0
To add a new question, is it possible to add question type (Time) (24 hours clock) just like question type (Date)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #82996

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4054
  • Dank erhalten: 740
  • Karma: 341
There is no such question available.

A solution may be to use a select-dropdown question.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83004

  • amritdeep
  • amritdeeps Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 34
  • Karma: 0
Under one question can i use three drop down selection box.
For e.g.
Que. What is your birth time?
Hours : (Here drop down with values 0-12)
Minutes : (Here drop down from 0-30)
Schedule: (Drop down for am-pm)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83006

  • floccs
  • floccss Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 47
  • Dank erhalten: 5
  • Karma: 2
I have made this simple workaround using jquery-ui-timepicker-addon.js.

Simply put the following code in the question field of a brief-text question (remember that you have to enable javascript in your survey)
Time question
<style>
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-widget-header { display:none; }
.ui-datepicker-current { display:none; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
</style>
 
<script src="http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js"></script>
 
<script>
$(document).ready(function(){
 
$('#answer{SGQ}').timepicker({
	timeText: 'Time',
	hourText: 'hour',
	minuteText: 'minute',
	closeText: 'Done'
});
 
$('#answer{SGQ}').attr('readonly', 'readonly');
 
});
</script>
Letzte Änderung: 2 Jahre 2 Wochen her von floccs.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83042

  • amritdeep
  • amritdeeps Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 34
  • Karma: 0
Thanks for reply.
Will you please tell me where i have to copy this code?
Please tell me the complete path....
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83043

  • floccs
  • floccss Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 47
  • Dank erhalten: 5
  • Karma: 2
follow this guide and paste my code into the brief question text.
Letzte Änderung: 2 Jahre 2 Wochen her von floccs.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83046

  • amritdeep
  • amritdeeps Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 34
  • Karma: 0
Please find the attachment and tell me what i have to select from drop down of "Question type"

oxosolutions.com/sites/backup_files/limesurveyforum.png


Letzte Änderung: 2 Jahre 2 Wochen her von amritdeep.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83052

  • floccs
  • floccss Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 47
  • Dank erhalten: 5
  • Karma: 2
Short text question
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83058

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4054
  • Dank erhalten: 740
  • Karma: 341
NICE solution flocs!

I would suggest putting the styles in your template.css file though - it's not really valid to put styles in the <body> element.

Can you add it to the workarounds section?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Question Type : Time 2 Jahre 2 Wochen her #83144

  • amritdeep
  • amritdeeps Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 34
  • Karma: 0
Thanks a lot. It really works...
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.216 Sekunden
Donation Image