Welcome, Guest
Username: Password: Remember me

TOPIC: Default text in long free text field

Default text in long free text field 3 years 4 months ago #63729

  • sari2108
  • sari2108's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
Hi Guys,

I need some help regarding long free text fields. I want to add some default text as an explanation, at best some text in light grey that will disappear by clicking in the text field. How can I do that?

Thanks in advance,
sari
The administrator has disabled public write access.

Re: Default text in long free text field 3 years 4 months ago #63732

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6658
  • Thank you received: 887
  • Karma: 263
Hello,

It's not included by default.

You can do your own jquery function or use a plugin ( for example : plugins.jquery.com/project/defaultText ).

To add javascript to question in LS, read the doc:
Workarounds: Manipulating a survey at runtime using Javascript

PS: if you want this functionnality are added in LS core : ideas.limesurvey.org/
Last Edit: 3 years 4 months ago by DenisChenu.
The administrator has disabled public write access.

Re: Default text in long free text field 3 years 4 months ago #63744

  • claudio123
  • claudio123's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 31
  • Thank you received: 1
  • Karma: 0
Sari,
have a look here: http://www.limesurvey.org/en/forum/can-i-do-this-with-limesurvey/63091-pre-fill-textfield#63091 - this is where I posted a very similar question and found a solution. Take care: you have to define the number of rows of the textfield, otherwise it will not work.
Of course you can use any text, not only the date like I did in my example.
Hope it helps,
regards
claudio
... lost in brackets ...
(I suggest a preview option for posting in the forum)
Last Edit: 3 years 4 months ago by claudio123. Reason: typo
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.101 seconds
Donation Image