Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Prefill textbox

  • joost1982
  • joost1982's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #155034 by joost1982
Prefill textbox was created by joost1982
Is it possible to prefill a textbox (from the "long answer"-type for example) with some standard text?
The topic has been locked.
  • joost1982
  • joost1982's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #155038 by joost1982
Replied by joost1982 on topic Prefill textbox
Oops, found the answer here: www.limesurvey.org/forum/can-i-do-this-w...tom-token-attributes

Example:
<script>
$(document).ready(function()
{
$("#answerSIDXGIDXQID").val('teeeeeeeeeest');
});
</script>
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose