You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defines what the default value of this field is if none is given. A field with a default value will be guaranteed to be in the result. The `required` value does not affect `default` behavior.
Defines a custom error message to be returned if the value fails filtering. Within the error string, `{value}` can be used as a placeholder for the value that failed filtering.
181
+
182
+
#### Types
183
+
184
+
* string
185
+
186
+
#### Default
187
+
188
+
There is no default value for this option.
189
+
190
+
#### Constant
191
+
192
+
```php
193
+
TraderInteractive\FilterOptions::CUSTOM_ERROR
194
+
```
195
+
196
+
#### Example
197
+
198
+
```php
199
+
$specificaton = [
200
+
'price' => [
201
+
TraderInteractive\FilterOptions::CUSTOM_ERROR => 'Price {value} was not between 0 and 100',
202
+
['uint', false, 0, 100],
203
+
],
204
+
];
205
+
```
206
+
207
+
## conflictsWith
208
+
209
+
#### Summary
210
+
211
+
Defines any input fields with which a given field will conflict. Used when one field can be given in input or another but not both.
0 commit comments