Using of reject() to return list of values

Question

Can I use reject() in Scripts to output multiple errors in list? It returns only a list with one element

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [X] Performance issue
  • [X] Documentation issue or request

Current behavior

reject() in squidex schema Scripts returns only one string element in list.

Expected behavior

reject() can receive an array of values and output as list of errors.
Like from validation error message:
image

Others

Maybe it’s possible somehow or other ways present.

No, it is not possible. But you can change this to a feature request.

1 Like

Okay, thank you.
Will raise such request.