do some js magic on hasoneformfield