Hi All,
I have an inline edit where a field defaults to zero
When the user inline edits that field, I want the value to fill with another field on the same row if that number is zero
Eg, here is my row:
FIELD1 FIELD2 FIELD3
apples 3 0
oranges 8 0
When apples clicked for edit
FIELD1 FIELD2 FIELD3
apples 3 [3] <-- gets filled with another column if zero.
oranges 8 0
So far I've tried javascript but the on'focus' event doesn't fire when you first click on the field
Also tried changing the default and autoupdate to $data['field2] and $values['field2']
Any ideas??