New Record Button - No Datatables

New Record Button - No Datatables

rlogrlog Posts: 7Questions: 0Answers: 0
edited March 2013 in Editor
Hello,

In order to satisfy an interface requirement, I would need to set up a "Create New Record" form without showing the table content. What I need is just an empty page with a single button "Create New Request" that would open the request creation form.
Is there some way I can use the Editor to do this?

Replies

  • allanallan Posts: 55,883Questions: 1Answers: 8,835 Site admin
    Sure - listen for the 'click' event on your button and use the Editor `create` API method to show the create form. You'll need the DataTable created (since Editor currently requires a DataTable to exist), but you can easily just hide it using display:none .

    API docs:
    http://editor.datatables.net/docs/current/Editor.html#create

    Regards,
    Allan
This discussion has been closed.