Editor, select field, can I do onchange=submit ?
Editor, select field, can I do onchange=submit ?
ve7tcc
Posts: 25Questions: 8Answers: 0
For inline editing, if I have a field which is a type='select' (dropdown menu type)
can I get it so that a new selection triggers a submit?
I tried onblur, did not trigger unless I click on another column.
This discussion has been closed.
Answers
The same goes for datetime fields, in inline editing, can you have onchange = submit()
Go to this example, https://editor.datatables.net/examples/inline-editing/simple.html
and inline, change a date. It does not trigger an update. How can I do that?
I have to hit return on that example to save my change.
Some progress with this. But it affects primary and bubble editing too. I am not sure how to get it to only work on inline editing. I am sure this is not the optimal way to do this either. I figure doing similar for datetime fields should work.
I worked out I can use the condition:
to confirm it is inline.
Something like this should do the job:
Note - I would very strongly recommend against using the private
sobject in any way. It is considered to be internal to Editor and its properties can, will and do change between versions.Regards,
Allan
Thank you, I will try this.
Is there a method to replace the editor.s.displayed == "inline" bit?
the on change did not work for the datetime field, are there events for the date picker I can try?
Thanks!