Custom question attributes?

More
4 years 3 months ago #120408 by garvsaxena
Hey thanks for your support.

I have one more issue that according to my clients need we need a custom question type which include listbox(drop down list) followed by a text field. and many more type of question. So can you please suggest me that from where and how can we create a new question type. Please help me out its very urgent!!!

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120423 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120428 by garvsaxena
if we want to edit in the Question Index section, then how can I do this

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120510 by garvsaxena
Hey Fresh Lemon..how r u?
Actually I have a question regarding lime survey. I have to edit in the Question Index section and could not find the template file regarding this, can you please tell me that which file is responsible for Question Index Section on the Survey Question Page.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120524 by tpartner
What changes do you want to make? There is no .pstpl file for the index. Associated styles can be found in template.css.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: garvsaxena

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120528 by garvsaxena
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.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120529 by garvsaxena
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.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #120533 by tpartner
You can do that with a little JavaScript and CSS.

Add this to the end of template.js:
$(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):
/* 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.
Official LimeSurvey Partner - partnersurveys.com
Attachments:
Last edit: 4 years 3 months ago by tpartner.
The following user(s) said Thank You: tammo, Perry

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120581 by garvsaxena
Hey thanx for your great help, its really appreciated.! Actually I m looking for the menu like this..please have a look on the below screenshot.


Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120582 by Ben_V
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

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120680 by garvsaxena
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...

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #120681 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #120903 by garvsaxena
Great!! thanks!

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #120904 by garvsaxena
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!!

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #120910 by Ben_V
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.

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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!