Different fields for "create" and "edit"?

Different fields for "create" and "edit"?

microshopmicroshop Posts: 11Questions: 4Answers: 1

It's possible define different fields for "create" and "edit" buttons?

This question has an accepted answers - jump to answer

Answers

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

    A few options:

    1. Have different Editor instances for each button with the different fields defined.
    2. Use the preEdit and preCreate events to use clear() and add() to remove and add fields
    3. Similar, use the same events with show() and hide() to show and hide fields.

    Allan

  • microshopmicroshop Posts: 11Questions: 4Answers: 1

    Thanks Allen, I've created two instances.

This discussion has been closed.