Using "clear" on a picklist in s subform results in invalidTaskInSubForm

Using "clear" on a picklist in s subform results in invalidTaskInSubForm

According to the doc  https://www.zoho.com/creator/help/fields/add-to-picklist-dynamically.html

I should be able to use "clear" to clear the current values in a subform picklist on the On User Input.

but it does not work.


list  =  Member_Rep_Shift  [ID == Appointment_Details.Shift_Picked];
clear Appointment_Details.Time_Picked;
Appointment_Details.Time_Picked:ui.append(list.Available_Hours.getall());