text input truncated in bootstrap modal ( codeigniter 4 )

Viewed 47

I am using modal to make input text for update a field in CodeIgniter 4, but the text truncated into a smaller(narrower) text. The code in modal (inside sertifikat.php) is :

<div class="row">
   <div class = "mb-3 row">                                                
       <div class = "m-1 row">
         <label for="kode_ta">Kode TA</label>
         <div class = "col-sm-3">
            <input type="text" class="form-control" name="kode_ta" id="kode_ta" value=<?= $v->kode_ta; ?>>                                  
         </div>                
      </div>

     <div class="mb-3">
        <label for="sertifikat">Sertifikat</label><?= $v->sertifikat; ?>
        <input type="text" name="sertifikat" id="sertifikat" class="form-control" value=<?= $v->sertifikat; ?> required>       
     </div>
                                    
     <div class="modal-footer">
       <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Tutup</button>
       <button type="submit" class="btn btn-primary">Simpan</button>
     </div>
   </div>
 </div>

I have changed to use object model (protected $returnType = 'object';), but basiccaly the same with array mode, and the result is the same. When I trace, not all field inside the text field, below is the picture when I inspect it : enter image description here

the value should be "Certified International personel assessor (cipa) oleh pt. quantum hrm international tahun 2020", but it show only "Certified" in bootstrap modal text field. When I run the program, it looks like this: sertifikat

Could anybody help me, please ?

1 Answers

You have value="Certified" international ... the second double quote should not be there, and it probably comes from the backend

Related