Create button appears after adding a record

Create button appears after adding a record

airmasterairmaster Posts: 72Questions: 15Answers: 2

After I add a record using the datatables button, when I go to edit that or any other record, instead of the cancel and save buttons, I get the create button again (modal custom edit form). Is there something I need to do to make it understand that we are editing, not creating?

                        { extend: "create", editor: editor, enabled: false},
                        {
                            enabled: false,
                            text: 'Edit', action: function (e, dt, node, config) {
                                editor.edit(table.rows('.selected', { select: true }));
                            }
                        },

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @airmaster ,

    I'm not seeing it with this example - it's likely to be something with your form's button configuration. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.

    Cheers,

    Colin

This discussion has been closed.