Editor field message lost on second view
Editor field message lost on second view
Link to test case: https://live.datatables.net/poqihuxu/4/
Error messages shown: N/A
Description of problem: Field message (shown bellow edit input) is lost on second view of editor. Steps to reproduce using test case:
1. select a row
2. click Edit. In editor message is shown bellow edit field
3. press Escape. Editor is closed
4. click Edit again. Message is never again displayed until page reload
This is specific to fields.message option, not fields.fieldInfo.
Is this intended behaviour and difference between the two, that message is shown only once?
This question has an accepted answers - jump to answer
Answers
Use
fields.fieldInfo
for that sort of information instead: https://live.datatables.net/poqihuxu/5/edit .The
fields.message
is intended to be transient and will be cleared for each create / edit action.Allan