![]() |
text input truncated in bootstrap modal - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: text input truncated in bootstrap modal (/showthread.php?tid=83052) |
text input truncated in bootstrap modal - SohamMaoor - 09-15-2022 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 omegle.2yu.co changed to use object model (protected $returnType = 'object' ![]() 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 omeglz echat . When I run the program RE: text input truncated in bootstrap modal - InsiteFX - 09-16-2022 This may help you to fix your problem, review the html modal code. CRUD App Using CodeIgniter 4, Bootstrap 5, jQuery - Ajax RE: text input truncated in bootstrap modal - paulbalandan - 09-17-2022 Try adding double quotes in the value. Like: Code: <input type="text" name="sertifikat" id="sertifikat" class="form-control" value="<?= $sertifikat; ?>" required> |