Hello, I am using the duplicate button which works perfectly as is, I would like some fields made readonly when the button is triggered. How can I do this please
This question has an accepted answers - jump to answer
After you call .mode('create'), you could then make calls to disable() or field().disable() to disable the fields you don't want the user to be able to write to.
Remember to then re-enable them once the submission is complete, or possibly in open for future edits.
Thanx very much Allan, works perfectly
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.