- Posts: 44
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple numerical input with different suffixes
- SherriChen
- Topic Author
- Offline
- Senior Member
Less
More
4 years 9 months ago #185845
by SherriChen
Multiple numerical input with different suffixes was created by SherriChen
Hi,
I am working on LS 3.x. I have a multiple numerical input question which contains many subquestions. I only want to add suffixes for two of the subquestions.
For example,
SQ001: ____
SQ002: ____
SQ003: ____%
SQ004: ____
SQ005: ____%
Thank you very much for your help!
I am working on LS 3.x. I have a multiple numerical input question which contains many subquestions. I only want to add suffixes for two of the subquestions.
For example,
SQ001: ____
SQ002: ____
SQ003: ____%
SQ004: ____
SQ005: ____%
Thank you very much for your help!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
4 years 9 months ago #185890
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 Multiple numerical input with different suffixes
Enable the suffixes in the question settings and add a script like this to the question source to remove them in certain rows.
Sample survey attached:
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#question{QID} .suffix-text:eq(0)').html(''); // Row 1 $('#question{QID} .suffix-text:eq(1)').html(''); // Row 2 $('#question{QID} .suffix-text:eq(3)').html(''); // Row 4 $('#question{QID} .suffix-text').css('width', '10px'); }); </script>
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- SherriChen
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 0
4 years 9 months ago #185894
by SherriChen
Replied by SherriChen on topic Multiple numerical input with different suffixes
Thank you very much! It really works great!
The topic has been locked.