add id of record to anchor attributes to be used eventually as hidden form value