The stray fields produced by ferromagnetic layers in Superconductor/Insulator/Ferromagnet (S/I/F) heterostructures may strongly influence their superconducting properties. Suitable magnetic configurations can be exploited to manipulate the main parameters of the hybrids. Here, the nucleation of the superconducting phase in an external magnetic field that periodically oscillates along the film width is studied on the base of the numerical solution of the linearized system of Usadel equations. In addition, the effect of the magnetic configuration of the F-layer on the temperature dependence of the critical current density, Jc(T), is investigated in the framework of the Ginzburg–Landau phenomenological theory on the base of the oscillating model of a stray field. By following this approach, the Jc(T) dependence of a Nb/SiO2/PdNi trilayer is reproduced for different magnetic configurations of the PdNi layer.