Different field availability between 'create' and 'edit' events
Different field availability between 'create' and 'edit' events
Opticmountain
Posts: 3Questions: 2Answers: 0
in Editor
Is there a way to specify that a field is available only for editing not for creation?
I.e. To create shows only one field - for example name, but if then edited multiple fields are available.
The main purpose of this is so that unique entries can be created with speed and populated with default values (that I do not want to clutter the form with) which can then be edited only if needed - most probably using inline edit.
Thanks in advance!
This discussion has been closed.
Answers
You can use the
show()
andhide()
methods to show / hide a field. Combine that with theinitCreate
andinitEdit
events and you can show and hide fields as required for each type.The other option is simply to create a second Editor instance with the second set of fields.
Allan