How hide 'recordId' column while edit.But same column need to show while create in datatables editor
How hide 'recordId' column while edit.But same column need to show while create in datatables editor
![Omniwyse](https://secure.gravatar.com/avatar/e524344c62c36ecbb13510f89353cd84/?default=https%3A%2F%2Fvanillicon.com%2Fe524344c62c36ecbb13510f89353cd84_200.png&rating=g&size=120)
My table contains 3 columns.
one of the column that is recordId is should hide while editing a row.Same column should be show while creating new one.
I am using datatables editor.
fields: [{
label: "recordId :",
name: "recordId ",
data: recordId,
},
{
label: "Name :",
name: "name",
data: "name",
}, {
label: "Description :",
name: "description",
data: "description"
}
]
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
Answers
Use the
initCreate
andinitEdit
events - e.g.:Not sure if it was a typo in the post, or actually in your code, but the
name
parameter forrecordId
has a trailing space there.Allan
Thanks allan..![:) :)](https://datatables.net/forums/resources/emoji/smile.png)