My application contains a large form with 18 fields. It is processed with a standard form display, for example:
val bigForm = Form( mapping( "id" -> of[ObjectId], "title" -> text,
And everything was fine, but today I decided to add another field, and here a problem arises - mapping cannot take more than 18 arguments.
What should I do then? Iām thinking about combining some fields into a structure, but an additional format requires an additional formatter, JSON serializer and deserializer, too much work. I am looking for a common solution, more fields will appear in the future.
Another solution that I think of is to manually process the form, without Form .
Are there any better solutions?
source share