My text inputs seem not to remember values that have been typed before. For example, many websites that I don\'t even have an account on, but have, for example entered my email
In bootstrap you would fill up the for='' field
Example:
<div class="custom-control custom-checkbox checkbox-lg">
<input type="checkbox" class="custom-control-input" id="TER" value="TER">
<label class="custom-control-label" for="TER">Land/Lot</label>
</div>
^ Notice how for and id values match
You may try autocomplete="on"
<input type="text" id="firstName" placeholder="First name" autocomplete="on" />
Add attribute autocomplete="off"
to your input.
In most browsers, you can make your browser display values previously entered in input fields by giving a name to the input. For example:
<input type="text" id="firstName" placeholder="First name" name="firstName" >
If the field has no name attribute, the browser won't show suggestions.
Also check if javascript prevents the default action on submit.
some browsers adamantly refused to remember an input until i "remembered it manually" via (ab)using localStorage... this worked for me:
{
// hack to remember last error id on page refresh
// can't believe i have to do this, but my browser don't want to remember it itself,
// ... not sure why
let $=document.querySelector.bind(document);
let errorid_element=$("#errorlog_id");
let rememberHack=function(){
localStorage.setItem("last_id_remember_hack",errorid_element.value);
};
errorid_element.addEventListener("input",rememberHack);
errorid_element.addEventListener("change",rememberHack);
errorid_element.value = localStorage.getItem("last_id_remember_hack");
}
It may vary depending on the browser and user privacy settings and sorts, and it should be on by default, but try adding autocomplete="on"
to your input tag.