Hello.
How can i fill form with json data from server? I have request which sends id to php (MySQL) and returns me data in json of this specific row. PHP script works fine because console.log actually shows the json of the selected row, but the form does not fill with this data
app.request.post("http://localhost/hydro/read.php",
{
type: 1,
id: serwisUpdateID
},
function(data) { // Success
let parsedSerwisData = JSON.parse(data);
console.log(parsedSerwisData);
app.form.fillFromData('#serwis-form', parsedSerwisData);
},
function(status) { // Error
console.log("Błąd", status)
}, "text"
);