Ensure the PageParameterDataProviderType query validation support arrays of integers.
Setup
- Create a form, with a record selector inside it.
- Add a list rows data source, assign it to the record selector.
- Add a querystring parameter to the page (e.g.
userIds) and set its type tonumeric. - Set the record selector's default value to this
userIdsparameter, and check "allow multiple".
The issue
- In editing: if you set
?userIds=1,2,3, the record selector will choose those record IDs. - In preview/public:
PageParameterDataProviderType.initchooses a validator, based on the page parameter type, which in this case isensurePositiveInteger. However,1,2,3isn't a valid number, so we throw an error: "Value '2,3' is not a valid integer or convertible to an integer."