limiting the filled number and adding %

More
2 months 1 day ago #220516 by xiaomeng0603
Hello

I use the Array(text) to edit the following table. Now I am wonder is it possible to make the two requirements come true?

First: Limit each filled number from 0 to 100. I found that if I used the “Maximum answers:100”, the table would be separate.
Second: Add the “%” in each cell. 

Thank you very much 
 

File Attachment:

File Name: limesurvey...ABLE.lsq
File Size:13 KB
Attachments:

Please Log in to join the conversation.

More
2 months 1 day ago #220540 by holch
Please always provide LSS files here in the forum. I know it is a little bit more work for you, but it saves the helpers quite some time.

Unfortunately to use your lsq file we need to create a survey, then a group and hope, that we created it in the same base language as your LSQ file, because these files are language sensitive. Help us to help you.

But please only send the relevant part of the survey, not your whole survey. To do so, make a copy of your survey, delete everything that is unnecessary for this topic and then export it as LSS file and upload it here.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
2 months 1 day ago #220541 by xiaomeng0603
 

File Attachment:

File Name: limesurvey...ABLE.lss
File Size:25 KB
Attachments:

Please Log in to join the conversation.

More
2 months 1 day ago #220543 by xiaomeng0603
Thanks for your suggestion, a submit the LSS again

Please Log in to join the conversation.

More
2 months 1 day ago #220546 by tpartner
I don't know why you used a table in the question text for the array headers. This will not work on mobile devices.

You can use the subquestion validation to ensure a maximum value of 100:
 
 
this <= 100

This script in the question source will insert a suffix after all inputs:
 
 
<script type="text/javascript" data-author="Tony Partner">	
	$(document).on('ready pjax:scriptcomplete',function(){
		// Input suffix
		$('#question{QID} :text.form-control').after('<span class="inserted-suffix"> %</span>').css({
			'display': 'inline-block',
			'width': '80%'
		});
	});
</script>

 

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
1 month 2 weeks ago #220950 by xiaomeng0603
thank you. it works. we rediscuss this qustion and give up using array headers. thank you a lot

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now