Forum OpenACS Q&A: Re: I can't get myfirstpackage (tutorial example in doc) to work

As said you did not pass the parameter item_id when calling mfp::note::add. I guess
ad_form -name note -form {
...
} -new_data {
    mfp::note::add \
	-title $title \
        -item_id $item_id
} -edit_data {
should do it.