Is it possible to make fields only addable, and not editable? when using Editor
Is it possible to make fields only addable, and not editable? when using Editor
gixxy22
Posts: 15Questions: 7Answers: 1
I would like a the ability to make only certain fields editable, either when editing or inline-editing. I would like the fields to be populate on adding, but make them un-editable.
Is it possible?
thanks
This question has an accepted answers - jump to answer
Answers
I've managed to make inline-editing available for only certain fields by doing this:
but cant work out how to do with for standard editing/multi row editing
Populated by the user on create, or by the database?
Allan
sorry im not quite sure what you're asking.
I would like the user to be able to create fieldA & fieldB values, but only be allowed to edit fieldB values
Basically this: https://editor.datatables.net/reference/option/fields.multiEditable
But an option for single rows
figured it out!
to remove the field
or
to grey it out
worth noting to anyone else, that this needs to follow in order to reshow the field on initCreate
Super - thanks for posting back! Good to hear you've got it working.
Allan