Title: filling form fields with data from database
Last modified: August 30, 2016

---

# filling form fields with data from database

 *  Resolved [zwora](https://wordpress.org/support/users/zwora/)
 * (@zwora)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filling-form-fields-with-data-from-database/)
 * 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/](https://wordpress.org/plugins/form-maker/)

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

 *  Thread Starter [zwora](https://wordpress.org/support/users/zwora/)
 * (@zwora)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filling-form-fields-with-data-from-database/#post-6267125)
 * 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](https://wordpress.org/support/users/support-web-dorado/)
 * (@support-web-dorado)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/filling-form-fields-with-data-from-database/#post-6267240)
 * 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](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.

 * ![](https://ps.w.org/form-maker/assets/icon-256x256.png?rev=2068681)
 * [Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder](https://wordpress.org/plugins/form-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/form-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/form-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/form-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/form-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/form-maker/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sona](https://wordpress.org/support/users/support-web-dorado/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/filling-form-fields-with-data-from-database/#post-6267240)
 * Status: resolved