- Posts: 6
- Thank you received: 0
Autocomplete Value not being Submitted
- hyperx
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #2214
by hyperx
Autocomplete Value not being Submitted was created by hyperx
I noticed that the Value of the Autocomplete field is not being submitted when you type the value and hit enter. For the value to be submitted the value has to be selected, is there a way to alter this behaviour?
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
9 years 8 months ago #2215
by andrea_4g
Replied by andrea_4g on topic Autocomplete Value not being Submitted
The autocomplete field needs a value to be selected. So, when the value is displayed you can use the UP and DOWN arrow keys to highlight the value and then press Enter to submit.
There's a little tweak that will force the first value of the list to be selected (and then submitted with enter).
Edit file : modules/mod_cpsearch/helper.php
Chanche lines 428-430 from
to:
Note: this modification will be overwritten when you upgrade Custom Properties.
There's a little tweak that will force the first value of the list to be selected (and then submitted with enter).
Edit file : modules/mod_cpsearch/helper.php
Chanche lines 428-430 from
Code:
jQuery(document).ready(function (){
jQuery( "#ac_'.$fId.'" ).autocomplete({
source: function(request, response) {
Code:
jQuery(document).ready(function (){
jQuery( "#ac_'.$fId.'" ).autocomplete({
autoFocus: true,
source: function(request, response) {
Note: this modification will be overwritten when you upgrade Custom Properties.
Please Log in or Create an account to join the conversation.
Time to create page: 0.152 seconds