node.js - Create Keystone list object without initial dialog? -
is there way create keystone list (model) item such initial dialog skipped during creation?
i want create item on detail page , enforce lot of fields required not work on dialog files , textarray.
i've tried setting
initial: false
and still not work.
there's autocreate
option lists skip create dialog when "new item" button clicked; catch have created, saved , loaded item in order render details view.
so won't able use built in required
functionality validate fields want have required; however, implement custom validation in pre-save hook skipped initial save when item new, , enforces validation rules subsequent saves.
having said that, if using keystone 4 (currently in beta) complex fields file
, textarray
work required fields in create dialog; if have problems getting them work initial fields, please open issue on keystone's github repo!
Comments
Post a Comment