Set the var using velocity code then display
#set ($myvar = $!{task.formfield("fieldname")})
<label>$myvar.label</label>
<div data-ocl-type="objective-catalogue-field-control" data-ocl-field-id="${myvar.id}" data-ocl-object-type-id="${myvar.objectTypeId}" data-ocl-is-editing="true"></div>