Welcome to the LimeSurvey Community Forum

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

Prefilling answer with token attribute is not working

  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 7 months ago #157130 by arunicbe
I want to prefill a short text field with token email attribute.

I have written the javascript code like this.

Code:
$("#answer792869X13X140").val('{TOKEN:EMAIL}');


The text field shows {TOKEN:EMAIL} instead of the value.

How to fix this?
The topic has been locked.
More
6 years 7 months ago #157209 by fvanderstarre
Replied by fvanderstarre on topic Prefilling answer with token attribute is not working
Hi, I'd suggest you set the text field default value to '{TOKEN:EMAIL}', no need for javascript there!
Good luck, Frank
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose