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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.