How can I get a field to not show up in the editor pop-up window if multiple rows are selected?
How can I get a field to not show up in the editor pop-up window if multiple rows are selected?
I have a table that has a field that I have disabled the ability to change. It works fine if only one row is selected, but if you select multiple rows and tell it you want to change that field. The field is disabled and is blank. I want to hide this field if the user selects more that one row, but show it if only one row is selected.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your best bet would be to use
initEdit
in combination withshow()
andhide()
to show and hide the field as required.Allan
I did it like this and it worked perfect.
Thanks for the fast response.
Perfect! The only change I would suggest is that you use
Table.rows({selected:true}).any()
. That's two small changes - the first to useany()
which simply saves a few characters, but more importantly use theselected
selector-modifier
option to get the selected rows (manual).Regards,
Allan