- Posts: 30
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Custom question attributes?
- garvsaxena
- Offline
- Junior Member
Less
More
8 years 11 months ago #120528
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Thanx a lot for replying..!
Actually I want to make this Question Index as DropDown Menu on the top of the survey page, currently it is displaying on the right.
Actually I want to make this Question Index as DropDown Menu on the top of the survey page, currently it is displaying on the right.
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 11 months ago #120529
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Thanks for your reply first..!
Actually I want to make Question Index like DropDown Menu on the top of the survey, currently this is displaying on the right side of the survey page.
Actually I want to make Question Index like DropDown Menu on the top of the survey, currently this is displaying on the right side of the survey page.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 11 months ago - 8 years 11 months ago #120533
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Custom question attributes?
You can do that with a little JavaScript and CSS.
Add this to the end of template.js:
And then add something like this to the end of template.css (these are for the default template):
Add this to the end of template.js:
Code:
$(document).ready(function() { // Custom question index if($('#index').length > 0) { $('body').addClass('with-dropdown-index'); $('#progress-wrapper').after($('#index')); $('#index .container').wrapInner('<div class="inner-container" />'); $('#index h2').insertBefore($('#index .inner-container')).append('<span class="ui-icon ui-icon-arrowthick-1-s"></span><span style="display:none" class="ui-icon ui-icon-arrowthick-1-n"></span>'); $('#index h2').click(function() { $('#index .inner-container').slideToggle(300, function() { if($('#index .inner-container').is(':visible')) { $('#index h2 .ui-icon-arrowthick-1-s').hide(); $('#index h2 .ui-icon-arrowthick-1-n').show(); } else { $('#index h2 .ui-icon-arrowthick-1-n').hide(); $('#index h2 .ui-icon-arrowthick-1-s').show(); } }); }); } });
And then add something like this to the end of template.css (these are for the default template):
Code:
/* Custom Dropdown Question Index */ .with-dropdown-index .outerframe { margin: 0; } .with-dropdown-index #index { position: relative; right: auto; top: auto; width: 25em; height: auto; margin: 0 auto 0.5em auto; overflow: auto; background: #fff; border: 1px solid #AAAAAA; } .with-dropdown-index #index .container { width: auto; } .with-dropdown-index #index h2 { position: relative; padding: 0.5em; background: #EEEEEE; text-align: center; cursor: pointer; color: #444444; } .with-dropdown-index #index h2 .ui-icon { position: absolute; top: 0.5em; right: 1em; display: inline-block; margin: 0 0 0 1em; background-image: url(images/ui-icons_888888_256x240.png); } .with-dropdown-index #index .inner-container { display: none; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 8 years 11 months ago by tpartner.
The following user(s) said Thank You: tammo, Perry
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 11 months ago #120581
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Attachments:
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
8 years 11 months ago #120582
by Ben_V
Such display changes requiere a lot of development, probably out of the scope of this forum...
BTW you may need be interested in this old post ; there is maybe some elements you can adapt .
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)
Replied by Ben_V on topic Custom question attributes?
Actually I m looking for the menu like this
Such display changes requiere a lot of development, probably out of the scope of this forum...
BTW you may need be interested in this old post ; there is maybe some elements you can adapt .
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)
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 10 months ago #120680
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Hey everyone..!!
I have a question which I have to implement in lime survey. Actually I have to set a Chained Dropdown Question Type in LimeSurvey. It means that If we choose the Country from the Drop Down List, then the Drop Down List of State is automatically populated with the correspondent data according to the country chosen.
I am wondering that how can we achieve this.?? Can anyone help me out as it is very important and urgent...
I have a question which I have to implement in lime survey. Actually I have to set a Chained Dropdown Question Type in LimeSurvey. It means that If we choose the Country from the Drop Down List, then the Drop Down List of State is automatically populated with the correspondent data according to the country chosen.
I am wondering that how can we achieve this.?? Can anyone help me out as it is very important and urgent...
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 10 months ago #120681
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Custom question attributes?
Please search the forums. A very quick search comes up with these:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 10 months ago #120903
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Great!! thanks!
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 10 months ago #120904
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Hey, Hello!!!
We need a simple user registration before start the survey. In user registration there are fields should be first name, lastname, username, email, password. After successful registration, user can enter his details into the login form and if the details matched he will be able to enter the survey and complete it.
In short we need a login based authentication not token based authentication.
Now my question is that is there any way to make this functionality in limesurvey??? Please help me out its very important for me...plz help!!
We need a simple user registration before start the survey. In user registration there are fields should be first name, lastname, username, email, password. After successful registration, user can enter his details into the login form and if the details matched he will be able to enter the survey and complete it.
In short we need a login based authentication not token based authentication.
Now my question is that is there any way to make this functionality in limesurvey??? Please help me out its very important for me...plz help!!
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
8 years 10 months ago #120910
by Ben_V
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)
Replied by Ben_V on topic Custom question attributes?
Custom question attributes? Drop Down List? registration?
I think you may open new threads instead posting 100% out of topic with the current title.
Remember that forum participants the most of the time subscribe and receive emails when something new is posted.
In other words, they are subscribing to a topic not to a user channel; LS forum aims to provide friendly help and it's not a free hotline.
I think you may open new threads instead posting 100% out of topic with the current title.
Remember that forum participants the most of the time subscribe and receive emails when something new is posted.
In other words, they are subscribing to a topic not to a user channel; LS forum aims to provide friendly help and it's not a free hotline.
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)
The following user(s) said Thank You: DenisChenu, tpartner, first
The topic has been locked.
- garvsaxena
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
8 years 10 months ago #120914
by garvsaxena
Replied by garvsaxena on topic Custom question attributes?
Ok got it..and I will take care of this in future...!
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
8 years 10 months ago #120917
by Ben_V
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)
Replied by Ben_V on topic Custom question attributes?
thanks
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)
The topic has been locked.