Skip to main content
1 of 3
Yuseferi
  • 22.2k
  • 22
  • 118
  • 218

I test it and worked for me

         $form['field_user_flag']['und']['#default_value'] =1;

also you can set default value of this field to check (in field settings in field managment)

Yuseferi
  • 22.2k
  • 22
  • 118
  • 218