question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Select Box search limited results

See original GitHub issue
Screenshot 2019-09-18 at 13 21 28

Environment

Using FormIO.js 4.0.3 we are seeing an issue where when you have a select box (Choices.JS) and a remote URL then start typing to locate an entry. I would expect to display all the results that match or at least a fair number (i.e up to 20). When we have tested we seem to only be getting 4 responses. Rather than a match of 10. i.e from the picture attached we have 10 teams HRH-1 to HRH-10. If I type HRH then I expect to see all 10.

  • Hosting type
    • [] Form.io
    • [ X] Local deployment
      • Version:
  • Formio.js version: 4.0.3
  • Browser: Safari | Chrome
{
  "id": "e8gg17",
  "key": "teamid",
  "data": {
    "url": "{$.environmentContext.referenceDataUrl}/v1/entities/team",
    "json": "",
    "custom": "",
    "values": [],
    "headers": [
      {
        "key": "",
        "value": ""
      }
    ],
    "resource": ""
  },
  "sort": "",
  "tags": [
    "platform-data-read"
  ],
  "type": "select",
  "input": true,
  "label": "Select team",
  "limit": 100,
  "logic": [],
  "filter": "",
  "hidden": false,
  "prefix": "",
  "suffix": "",
  "unique": false,
  "widget": null,
  "dataSrc": "url",
  "dbIndex": false,
  "lockKey": true,
  "overlay": {
    "top": "",
    "left": "",
    "style": "",
    "width": "",
    "height": ""
  },
  "tooltip": "",
  "disabled": false,
  "lazyLoad": false,
  "multiple": false,
  "tabindex": "",
  "template": "<span>{{ item.name }}</span>",
  "validate": {
    "json": "",
    "custom": "",
    "required": true,
    "customMessage": "",
    "customPrivate": false
  },
  "autofocus": false,
  "encrypted": false,
  "hideLabel": false,
  "minSearch": 0,
  "protected": false,
  "refreshOn": "locationid",
  "tableView": true,
  "errorLabel": "",
  "persistent": true,
  "properties": {},
  "validateOn": "change",
  "clearOnHide": true,
  "conditional": {
    "eq": "",
    "json": "",
    "show": "",
    "when": null
  },
  "customClass": "",
  "description": "",
  "fuseOptions": {
    "include": "score",
    "threshold": 0.3
  },
  "placeholder": "",
  "searchField": "",
  "authenticate": false,
  "defaultValue": "",
  "disableLimit": false,
  "selectFields": "",
  "selectValues": "data",
  "alwaysEnabled": false,
  "customOptions": {},
  "labelPosition": "top",
  "readOnlyValue": false,
  "searchEnabled": true,
  "showCharCount": false,
  "showWordCount": false,
  "valueProperty": "id",
  "calculateValue": "",
  "clearOnRefresh": true,
  "searchThreshold": 0.3,
  "selectThreshold": 0.3,
  "customConditional": "",
  "allowMultipleMasks": false,
  "customDefaultValue": "",
  "allowCalculateOverride": false,
  "redrawOn": "",
  "attributes": {
    "renderChoiceLimit": "-1"
  }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
namticommented, Jul 12, 2021

@randallknutson Could you provide an example on how to set this value after Formio.createForm is called?

"customBasic": {
	"title": "Form Fields",
	"components": {
		"select": {
			"title": "Select",
			"key": "select",
			"icon": "list",
			"schema": {
				"type": "select",
				"customOptions": {
					"searchResultLimit": 999
				}
			}
		}
	}
}
2reactions
bandman0226commented, Jun 12, 2020

Thanks for the info @randallknutson - This also worked for us. I did have another question to ask. It works fine now but when a we scroll to the bottom of the list it seems to “reset” the filter and shows all the records. Any thoughts or suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search Bug SharePoint Online, drop down results don't match ...
in navbar search box. Enter search term, drop down list of 5 results that appears is correct. BUT. when you click show more...
Read more >
Problems with adding a search engine to your site
I'm having problems with the iframe that displays my search results. The iframe hosting option for displaying your search results is no longer...
Read more >
Excel Data Validation Tips and Troubleshooting - Contextures
The videos and written steps below will help you with data validation drop down list troubleshooting in Microsoft Excel.
Read more >
Create an Excel Drop Down List with Search Suggestions
So instead of using a control box to do the search, every cell in a certain column gets to search results from multi-select...
Read more >
<input type="search"> - HTML: HyperText Markup Language
The values of the list attribute is the id of a <datalist> ... This allows your code to update the search results in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found