API method to get currently edited field

API method to get currently edited field

pcfreak30pcfreak30 Posts: 1Questions: 0Answers: 0

Would have a method so for example if im bubble editing, I can hook into preOpen and get the current field if applicable and optionally change the set data from the modifier(). Right now I have to do:

table.column('assigned_users:name').nodes().flatten().to$().on('click', function () {
                let data = table.cell(this).data()
                self.editor.field('assigned_users').set(_.pluck(data.assigned_users, 'id'))
              })

Replies

  • allanallan Posts: 61,438Questions: 1Answers: 10,052 Site admin

    displayed() is the method that will tell you what fields the end user can see.

    Technically all fields are still editable via the API, even if only one is visible to the end user.

    Allan

This discussion has been closed.