emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

add field to model form #268

Closed josejachuf closed 4 years ago

josejachuf commented 4 years ago

Hi @gi0baro

A weppy query, maybe the same in emmett. I have a modelForm. I want to add a field that is not part of the model. In this particular case it is an input type checkbox. It is so that during the submit in form.accepted take some action according to the value of this extra field. I am sure that in some project I used it, but I cannot find what I did. Jose

gi0baro commented 4 years ago

@josejachuf I think the best is to actually create a standard Form that uses fields from the model and perform custom actions on acceptance.

josejachuf commented 4 years ago

Ok @gi0baro, I had thought of that alternative. Thanks

gi0baro commented 4 years ago

@josejachuf I'm gonna close this, feel free to reopen it in case you need more help