Different field availability between 'create' and 'edit' events

Different field availability between 'create' and 'edit' events

OpticmountainOpticmountain Posts: 3Questions: 2Answers: 0

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!

Answers

  • allanallan Posts: 61,840Questions: 1Answers: 10,134 Site admin

    You can use the show() and hide() methods to show / hide a field. Combine that with the initCreate and initEdit 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

This discussion has been closed.