kuskov Posted November 19, 2014 Share Posted November 19, 2014 Hey guys, i have a model: class Postcode extends ObjectModel { public $id_state; The definition has: 'id_state'=> array( 'type'=>self::TYPE_INT, 'validate'=>'isUnsignedId', 'required'=>true ), And i try to add a field in admin: array( 'type'=>'text', 'label'=>$this -> l('City'), 'name'=>'id_state', 'maxlength'=>64, 'required'=>true ), but it seems the model doesnt find "id_state" as i see only": <div class="form-group" id="contains_states" style="display:none;"> <label class="control-label col-lg-3 required"> City </label> <div class="col-lg-9 "> <input type="text" name="id_state" id="id_state" value="" class="" maxlength="64" required="required"> </div> </div> Can someone say what i am missing? Thanks! Link to comment Share on other sites More sharing options...
kuskov Posted November 19, 2014 Author Share Posted November 19, 2014 I figured it out, that in the country itself there is a flag "Need states" - it should be on Link to comment Share on other sites More sharing options...
Recommended Posts