List with comments - 2 questions

Más
1 mes 1 semana antes #186561 por comep
Dear all
I have 2 questions regarding the list with comments question.

1. can I force the list with comments and to accept only numbers?
2. can I adjust the size of the comments box to a smaller one?

I have Lime survey version 2.72.5+171121 and a customized news_paper theme.

Thank you,


Comep

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

LimeSurvey Partners
Más
1 mes 1 semana antes - 1 mes 1 semana antes #186582 por Joffm
Respuesta de Joffm sobre el tema List with comments - 2 questions
Hi,
you talk about a list with comments?


You may use a webdeveloper tool which is included in all modern browsers to find the classes which are involved and how to change their values.
Here add something like this to the source code:
<style type="text/css">
textarea.form-control {
 
    height: 40px;  // values up to you
    width: 30%;
 
}
</style>


To accept only numbers you may validate the comment.




Read the manual here:
https://manual.limesurvey.org/Expression_Manager#Access_to_Variables
and
https://manual.limesurvey.org/Expression_Manager#Implemented_Functions

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Adjuntos:
Última Edición: 1 mes 1 semana antes por Joffm.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
1 mes 1 semana antes #186598 por comep
Respuesta de comep sobre el tema List with comments - 2 questions
Thank you.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
3 semanas 3 días antes #187117 por haroldrio
Respuesta de haroldrio sobre el tema List with comments - 2 questions
Hi there.

I have a similar question about this one.
I am using Limesurvey 2.51.4 version

I have a list with comment question and I want the comment to accept only numbers.

Iam not really very techie about codes and I was able to find a snippet about changing the "Type your comments here"
<h4><strong>Current repayments</strong></h4>
 
<p>Frequency</p>
<script type="text/javascript" charset="utf-8">	
$(document).ready(function(){
 
 $('.list-with-comment p.comment label').text('Amount ($)');
 
  });
 
 
</script>


I tried using this snippet above and insert in my source code but it doesn't work
and the "type your comments here" appears again.

I am not sure where to paste the code so maybe that's what causing the error.

<style type="text/css">
textarea.form-control {
 
    height: 40px;  // values up to you
    width: 30%;
 
}
</style>


This is what I did
<h4><strong>Current repayments</strong></h4>
 
<p>Frequency</p>
<script type="text/javascript" charset="utf-8">	
$(document).ready(function(){
 
 $('.list-with-comment p.comment label').text('Amount ($)');
 
 <style type="text/css">
textarea.form-control {
 
    height: 40px;  // values up to you
    width: 30%;
 
}
</style>
 });
 
 
</script>

And what should be placed in the "values up to you" - I want them to key in any number



Thanks in advance

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

¡Comenzar ahora!

Simplemente cree una cuenta y comience a usar LimeSurvey hoy mismo.

Registrarse ahora
¡Únase a nuestro boletín informativo!

Iniciar sesión