but I want the user to be able to edit the date value only for a task of type Task and the fields with the project and milestone types remained unchanged
Hello Viktor,
You get the error with your configuration because Gantt expects that the show function will return an HTML element. Then Gantt calls the set_value function for that HTML element. When you return false, the set_value function cannot set the values to the false entity.