Welcome to the LimeSurvey Community Forum

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

Can I enable simple autocomplete?

  • improvius
  • improvius's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205261 by improvius
Can I enable simple autocomplete? was created by improvius
I'm not talking about autocomplete using a custom list of answer options. I would like to enable the basic browser autocomplete that would make it easier for users taking the same survey multiple times to enter the same text again. I can see where the form is set to disable autocomplete, but I can't figure out where to change it:
Code:
<!-- Start of the main Form-->
<form id="limesurvey" name="limesurvey" autocomplete="off" class="survey-form-container form" action="/index.php?r=survey/index&amp;amp;sid=999999" method="post">

I am specifically wanting to enable this for fields like name and email address. Eventually autofill will kick in once enough users have hit the surveys, but it would be very helpful if I could enable autocomplete right away.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205280 by Joffm
Replied by Joffm on topic Can I enable simple autocomplete?
Hi,
I can tell you where you find it; but nothing else.
in
limesurvey\themes\survey\yourTheme\views\subviews\header\start_form.twig
Code:
{#      
This file generates the opening form tag and the CRSF token for the main survey Form.
    eg:
        <form enctype="multipart/form-data" id="limesurvey" name="limesurvey" autocomplete="off" class="survey-form-container" action="index.php/289445" method="post">
        <input type="hidden" value="393e1f3e91d6fb062b8c67d39771bb674de337ca" name="YII_CSRF_TOKEN">
 
    It uses the Yii fuction CHtml::form
    @see: http://www.yiiframework.com/doc/api/1.1/CHtml#form-detail
 
    The hidden submit button is used for any submission (triggered via JS event).
#}

{#
    array of attributes of the form tag.
    To add a new attribute, just add an entry:
    'attribute' : 'value',
#}
{% set htmlOptions = {
        'id'          : 'limesurvey',
        'name'        : 'limesurvey',
        'autocomplete': 'off',
        'class'       : 'survey-form-container form',
    }
%}


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, improvius
The topic has been locked.
  • improvius
  • improvius's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205951 by improvius
Replied by improvius on topic Can I enable simple autocomplete?
Thank you. I had to go to themes\survey\vanilla\views\subviews\header, but otherwise it was exactly as you described. Changing the value had the desired effect.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose