Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

convertToSingleSelect and convertToMultiSelect in Service Desk

Viktor Kuzmychov
Contributor
April 3, 2020

Having this code working perfectly on Edit screen 

Map<String, String> serviceTypeNames = new HashMap<String, String>()

...
field.convertToSingleSelect()
field.setFieldOptions(serviceTypeNames)

But doesn't work on Service Desk form.  

1 answer

0 votes
Viktor Kuzmychov
Contributor
April 3, 2020

Console shows this error:

[SR Behaviours] Error retrieving validators TypeError: Cannot read property 'minQueryLength' of undefined
at e (batch.js?locale=en-US:739)
at t.e.addBehaviourToField (batch.js?locale=en-US:739)
at t.e.addFieldListeners (batch.js?locale=en-US:739)
at batch.js?locale=en-US:739
Viktor Kuzmychov
Contributor
April 3, 2020

Works better I do it this way:

field.convertToSingleSelect([ 
ajaxOptions: [
query: true, // keep going back to the sever for each keystroke
minQueryLength: 0,
keyInputPeriod: 500,
formatResponse: "general",
]
])

 But can't populate values. Not populated on transition screen eaither

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events