Disable cas inputs for add/update

-Create utility js functions