Order-Disorder Transition in an External Field in Random Ferromagnets and Nematic Elastomers