Prefilling answer with token attribute is not working

More
3 months 4 weeks ago #157130 by arunicbe
arunicbe created the topic: Prefilling answer with token attribute is not working
I want to prefill a short text field with token email attribute.

I have written the javascript code like this.

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


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

How to fix this?

Please Log in to join the conversation.

More
3 months 3 weeks ago #157209 by fvanderstarre
fvanderstarre replied the 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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!