• Can I use this plugin to get values from a record in my database? I know that you can for instance populate tables with values from a URL but is there anyway that I could use this value to then get a record from a particular table and then populate the form with the details from that record.

    So just as an example, let’s say my url was http://www.testsite.co.uk/useredit?=1 which 1 is the id of the record I want to retrieve. Could I retrieve that record and then populate the form with the details from the user who has the id of 1.

    Failing that is there an alternative way I could populate my form fields with values from a record in a database?

    I hope I’m being clear.

    Thanks

    Jon

    https://ww.wp.xz.cn/plugins/contact-form-7-dynamic-text-extension/

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi Jon,

    As long as you can retrieve the value with a shortcode, you can use it in the form. You’ll either need a shortcode that grabs the value from the DB, or you’ll need to write a custom shortcode to do it.

    The plugin basically just allows you to add data to the form via a shortcode. It offers a few basic shortcodes for common use cases, but for more specific or advances uses, you simply roll your own shortcode to get the value you need 🙂

    Hope that helps,

    Chris

Viewing 1 replies (of 1 total)

The topic ‘Prepopulate form with values from database’ is closed to new replies.