• Resolved mrcavallo

    (@mrcavallo)


    hello,

    i am not sure if the plugin will let me do this – but is it possible to have a Contact Form 7 text field automatically filled with the title of the current post?

    ie – i have the same form on every product post – depending what product they are looking at, the form will auto fill this in.

    thank you.

    • This topic was modified 7 years, 10 months ago by mrcavallo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Sure, check out the FAQ: How can I pre-fill a form from a WordPress page template that contains a CF7 form ?

    Thread Starter mrcavallo

    (@mrcavallo)

    hi Aurovrata,

    thanks for the direction. that is a little beyond me unfortunately. not sure how to integrate the code to my front end form – ie how to call the post name to fill in a specific field – plus i would like it to auto fill even if user is not logged in.

    i do not know enough PHP to figure this out. i will see if there is another plugin available for PHP idiots ??

    cheers.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Dear @mrcavallo

    I understand that it can be overwhelming initially. However, hooks & filters is where WordPress becomes really interesting and is the reason why there are so many plugins available to enhance your site.

    You have 2 options: learn some basic PHP and WordPress Actions & Filters with a tutorial, … or keep your website simple.

    What you are trying to do now is not possible without some knowledge of PHP & hooks. There are 2 other form plugins that allow you to do something similar, Gravity Forms and FormidablePro, both of which are paid-for and still you will need to use hooks & PHP to make it work ??

    Thread Starter mrcavallo

    (@mrcavallo)

    hello,

    i ended up using a different extension plugin that allowed me to simply add a single line to auto populate the field with the post title.

    i have to admit i have built some very complicated sites without any PHP knowledge as a result of all of the amazing plugins available. even some paid plugins are so much cheaper than hiring a programmer. WordPress and its resources really is incredible.

    but you are right – some PHP knowledge would definitely be a benefit rather than relying on finding the right plug-in all the time. plus also helping to debug when something goes wrong.

    thanks for your time and all the best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Auto fill Field with Post title’ is closed to new replies.