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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.