DataEditor Uneven number of fields

DataEditor Uneven number of fields

loloskiloloski Posts: 46Questions: 5Answers: 1

Hi Guys,

How can we present different number of fields for each function

Simple CRUD example

Add
Firstname
Lastname

Edit
Firstname
Lastname
Date Registered (System Generated on the backend)

Take note on the add function you don't have Date registered field whilst on the edit function the Date Registered field should be presented on the user and now part of the UI, I hope this make sense.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Two options:

    1. Simply use a different Editor instance for the two different options, each with their own field list configured.
    2. Use show() and hide() along with initCreate and initEdit to show / hide the fields as required.

    Allan

  • loloskiloloski Posts: 46Questions: 5Answers: 1

    Thanks allan yeah it works

This discussion has been closed.