In the top part of the code the
'disable_in_input'= false
So to let the code work you can change it in:'disable_in_input'= true
Or you can call the add with the specific object.