Hide button on modal form

Hide button on modal form

dynasoftdynasoft Posts: 446Questions: 69Answers: 3

Hi
I need to show the edit button on the datatable page so users can select a row and click the edit button (I changed the caption to 'View') to view its details but then hide any update button on the modal form. How can I achieve this? Thanks.

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @dynasoft ,

    Is this using Editor? If so, take a look at the examples on that page, like this one, very easily done.

    Cheers,

    Colin

  • dynasoftdynasoft Posts: 446Questions: 69Answers: 3

    Yes using Editor. Sorry but I can't see what properties to set so the Update button does not show on the modal form.

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi dynasoft,

    Just to add to what colin has said, I've put together a small example here - http://live.datatables.net/nuvihosi/16/edit

    You'll see that I have set the formButtons property to be an empty array so that no buttons will appear on the form. The formTitle property should be set to whatever text you want as your form title and finally set the text property to whatever you want the text on the button to be.

    Hope this helps,

    Sandy

  • dynasoftdynasoft Posts: 446Questions: 69Answers: 3

    Thanks a lot. That worked.

This discussion has been closed.