For a theory with a pseudo scalar coupling φFF and in the case that there is a constant electric or magnetic strength expectation value, we compute the interaction potential within the structure of the gauge-invariant but pathdependent variables formalism. While in the case of a constant electric field strength expectation value the static potential remains Coulombic, in the case of a constant magnetic field strength the potential energy is the sum of a Yukawa and a linear potentials, leading to the confinement of static charges.