Welcome to the LimeSurvey Community Forum

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

remember previous entries - autocomplete

  • jph123
  • jph123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #121686 by jph123
I've got a survey (used as a booking form) and wondered if there was a way to allow the browser autocomplete to remember the participants previous response to certain questions. E.g They fill in the form once and in the "Name" question put their name. When they need to complete the form again in the future it would be good for it to use the autocomplete function to populate the name the second time. (The same for an email address field would be good.)

To be clear I'm talking about this feature: www.w3schools.com/tags/att_form_autocomplete.asp
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 10 months ago #121706 by tpartner
Replied by tpartner on topic remember previous entries - autocomplete
The ""autocomplete" attribute is set to "off" because it's not appropriate for a survey tool.

As a workaround, you can try adding this to the end of template.js:

Code:
$(document).ready(function(){
  $('#limesurvey').attr('autocomplete', 'on');
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose