We have described primary studies on conductivity and molecular weight of polyaniline separately in the electric and magnetic fields when it is used in a field effect experimental configuration. We report further studies on doped in-situ deposited polyaniline. First we have chemically synthesized polyaniline by ammonium peroxodisulfate in acidic aques and organic solutions at different times. Then we measured mass and conductivity and obtained the best time of polymerizations. In continue, we repeated these reactions separately under different electric and magnetic fields in constant time and measured mass and conductivity. The polyaniline is characterized by gel permeation chromatography (GPC), UV-Visible spectroscopy and electrical conductivity. High molecular weight polyanilines are synthesized under electric field, $M_w$ = 520000-680000 g/mol, with $M_w/M_n$ = 2-2.5. The UV-Visible spectra of polyanilines oxidized by ammonium peroxodisulfate and protonated with dodecylbenzenesulfonic acid (PANi-DBSA), in N-methylpyrolidone (NMP), show a smeared polaron peak shifted into the visible. Electrical conductivity of polyanilines has been studied by four-probe method. The conductivity of the films of emeraldine protonated by DBSA cast from NMP are higher than 500 and 25 S/cm under 10 KV/m of potential) electric field and 0.1 T magnetic field, respectively. It shows an enhanced resistance to ageing too. By the next steps, we carried chemical polymerization at the best electric and magnetic fields at different times. Finally, resulted in finding the best time and amount of the fields. The longer polymerization time and the higher magnetic field can lead to degradation of polyaniline films and decrease conductivity and molecular mass.