Muhammad Idris Posted July 16, 2025 Posted July 16, 2025 I have used this script, but the error "MainForm is not ready" appears. HTML.Add('<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">' + '<div class="container mt-4">' + ' <div class="card shadow">' + ' <div class="card-header bg-primary text-white">Form Input Pasien</div>' + ' <div class="card-body">' + ' <div class="mb-3">' + ' <label>No RM</label>' + ' <input type="text" id="norm" class="form-control">' + ' </div>' + ' <div class="mb-3">' + ' <label>Nama</label>' + ' <input type="text" id="nama" class="form-control">' + ' </div>' + ' <div class="mb-3">' + ' <label>Alamat</label>' + ' <textarea id="alamat" class="form-control"></textarea>' + ' </div>' + ' <button onclick="submitPasien()" class="btn btn-success">Simpan</button>' + ' </div>' + ' </div>' + '</div>' + '<script>' + 'function submitPasien() {' + 'if (typeof MainForm !== "undefined") {' + 'ajaxRequest(MainForm, "submitPasien", [' + '{ name: "norm", value: document.getElementById("norm").value },' + '{ name: "nama", value: document.getElementById("nama").value },' + '{ name: "alamat", value: document.getElementById("alamat").value }' + '], function(response) {' + 'alert("Data berhasil dikirim!");' + '});' + '} else {' + 'alert("MainForm belum siap.");' + '}' + '}' + '</script>'); Project-1580.rar Quote
Sherzod Posted July 16, 2025 Posted July 16, 2025 Hello, It seems you are using third-party components (such as UniDAC from Devart). Could you please create a test case without them? Quote
Muhammad Idris Posted August 13, 2025 Author Posted August 13, 2025 On 7/16/2025 at 4:48 PM, Sherzod said: Hello, It seems you are using third-party components (such as UniDAC from Devart). Could you please create a test case without them? this is an example of its application without UniDAC. thank you UniGui-Bootsrap.rar Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.