on mouseUp put field "id" into tID put field "title" into tTitle put field "description" into tDescription if tTitle is empty or tDescription is empty then answer "Please fill all form fields" else upsertWorkItem tID, tTitle, tDescription go to first end if end mouseUp