Hi community.
I’ve found a weird bug(or it might be my fault) with forge custom field validation expression.
There’s my Forge custom field configuration:
{
"maxResults":100,
"startAt":0,
"total":1,
"isLast":true,
"values":[
{
"id":"10968",
"contextId":10968,
"fieldContextId":"10968",
"configuration":{
"values":[
"test",
"test2",
"test3",
"None"
],
"isRequired":true
}
}
]
}
In the official docs is mentioned that I can refer to this configuration in validation
expression.
But when I’m trying to do the same:
validation:
expression: "configuration.isRequired && value != null && value.length != 0"
errorMessage: Value shouldn't be empty
I receive the next error on the issue creation:
There was an error when validating the value. Evaluation failed: “configuration.isRequired” - Unrecognized property of
configuration
: “isRequired” (‘isRequired’). Type null does not have any properties
Has anyone faced with this problem?