Hi Vibin,
While creating a user defined field using SDK, you need to provide following things:
SAPbobsCOM.BoFieldTypes.db_Memo
and
SAPbobsCOM.BoFldSubTypes.st_Link
This will facilitate you to add the attachment for user defined form.
Hope it helps.
Thanks & Regards
Ankit Chauhan