Custom form userpicker the ExtraProps dont work
Hi,
we want to use the ExtraProp setting in the userpicker datatype in one of our custom forms, but it dont seems to work.
i wrote '"ExtraProps": "Department, DisplayName"' under the UserPicker and the form doesnt show the extraprops. Is there something i have to know how to use it?
whole code
"
columnFieldList: [
{ "DataType": "UserPicker",
"PropertyDisplayName": "Zugewiesener Benutzer",
"PropertyName": "Target_dd70b742_95fc_4423_bc8b_38136630caaf"},
{
"DataType": "String",
"PropertyDisplayName": "DisplayName",
"PropertyName": "DisplayName",
"Disabled": false,
"Required": true,
"MinLength": 0,
"MaxLength": 4000,
"EnumId": null,
"ColSpan": 0,
"type": null,
"ClassId": null,
"PropertyToDisplay": null,
"SelectableRow": false,
"SelectProperty": null,
"ExtraProps": "Department, DisplayName"
}
"
regards
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
Hi Jan,
This code looks like 2 separate controls. The first is your user picker (with no ExtraProps) and the second is a string control targeting the DisplayName property (which would be the displayname of the work item if this is a work item form). You maybe just need to add the ExtraProps property to the user picker control. The closing bracket after Target_dd70b742_95fc_4423_bc8b_38136630caaf closes the UserPicker control so you would want to add ExtraProps before that.
1
Answers
Hi Jan,
This code looks like 2 separate controls. The first is your user picker (with no ExtraProps) and the second is a string control targeting the DisplayName property (which would be the displayname of the work item if this is a work item form). You maybe just need to add the ExtraProps property to the user picker control. The closing bracket after Target_dd70b742_95fc_4423_bc8b_38136630caaf closes the UserPicker control so you would want to add ExtraProps before that.
@Justin_Workman sorry shame on me. i dont recognized the brackets. Thank you😊