Row reordering - set order field as hidden in editor ?
Row reordering - set order field as hidden in editor ?
Is it possible to hide the order field in editor ?
I realise it is read only, but if hidden, users would not think to try and change it.
I tried adding type: 'hidden' in my editor instance, but get an error message on reordering - 'Cannot read property 'prop' of undefined'
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Can you link to the page showing the error please. If that isn't possible we might be able to help if you show your code. The
hidden
field type sounds like it should be perfect in this case.Allan
still on test server for now, will upload if this code snippet doesn't help
if i remove the line type: "hidden", it works fine
I appreciate that the code above is not finalised, as i either want to hide only on edit, (not on create), or automatically increment to the next number on create
I must confess I don't understand why it being a hidden field would have any effect on it compared to a visible field. I'm afraid I would need a link.
Allan
Thanks Allan
As instructed, changed lines Editor 1.5.1
from
} );
to
I also used the code snippet in another thread to set a default value to the next number in sequence on create
Sounds good. This change will be in the next Editor release (1.5.2).
Allan