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
@IlyaSemenov could there also be a clean.skip method? I sometimes want to allow empty arrays for certain values. A skip method should allow me to define the values that I don't ant to be included in the clean function.
I think this issue is about something different so I opened an another issue for skipping elements.
This particular issue is about cleaning a form <select> or similar cases where a user is only allowed to pick a certain value.
The problem is, if I add choices to clean.any then the values won't be pre-cleaned (e.g. numbers won't be casted from strings). But if not, it will need to be duplicated in each cleaner.
I put it on hold until I decide how to arrange it properly. Perhaps it will be an aggregating cleaner like clean.choices() instead of the new option.
IlyaSemenov
changed the title
Add clean.any({ choices })
Cleaning choices such as value of HTML select
Jan 9, 2019
Add
clean.any({ choices })
which will only accept one of predefined values.The text was updated successfully, but these errors were encountered: