• Resolved zwora

    (@zwora)


    Hi,

    Sending form data to a database works perfectly, but is that possible to fill form fields with data taken from database? I would like to call form with id of some record in some table and the form should load with data of that record. Is it possible?

    Thanks

    https://wordpress.org/plugins/form-maker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zwora

    (@zwora)

    And one more problem. I would like to add some js but some functions doesn’t work. Even simlpe thhings like below:

    function before_submit() {
    document.getElementById(“wdform_3_elementform_id_temp”).value=”abc”;
    }

    or

    function before_submit() {
    var valueID = $_GET(‘idvar’);
    alert(valueID);
    }

    idvar in above function is a variable sent in page url.

    Above are very simple functions and if they were working I could try to send values of db the fields in url and then put them into form elements.

    Any help would be appreciated.

    Sona

    (@support-web-dorado)

    Dear user,

    By default there is no option for that.

    The first sample should work, whereas the second will not, since you are using PHP $_GET superglobal within Javascript, this link should be useful for you- http://stackoverflow.com/questions/5448545/how-to-retrieve-get-parameters-from-javascript.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘filling form fields with data from database’ is closed to new replies.