PageSourceSearch

https://www.sports-fest.com/public/js/form-widgets/lookup.js

js sports-fest.com collected 2026-10-06 17:00:40 UTC 1,431 bytes, 50 lines download raw bytes

1Survey.ComponentCollection.Instance.add({
2    name: "lookupfield",
3    title: "Look UP",
4    iconName: 'icon-search',
5    questionJSON: {
6        name: "lookupfield",
7        type: "dropdown",
8        placeholder:"",
9        choicesLazyLoadEnabled: true,
10        choicesLazyLoadPageSize: 20,
11        showOtherItem:false,
12       itemComponent:"MyComponent",
13        placeholder: 'Search...'
14    },
15    onInit() {
16        Survey.Serializer.addProperty("lookupfield", {
17            name: `lookupFieldName`,
18            type: 'string',
19            category: 'choicesByUrl'
20        })
21
22        Survey.Serializer.addProperty("lookupfield", {
23            name: `lookupObject`,
24            type: 'string',
25            category: 'choicesByUrl'
26        })
27
28        Survey.Serializer.addProperty("lookupfield", {
29            name: "placeholder",
30            displayName: 'Placeholder',
31            category: 'general',
32            type: "string",
33            default: 'Search...'
34        });
35    },
36
37    onLoaded(question) {
38        if (question) {
39            this.updateProperty(question);
40        }
41    },
42    updateProperty(question) {
43        if (!!question.contentQuestion){
44            question.contentQuestion.lookupFieldName = question.lookupFieldName;
45            question.contentQuestion.lookupObject = question.lookupObject;
46            question.contentQuestion.placeholder = question.placeholder;
47        }
48           
49    },
50});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.