The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

How to dynamically add post title as subject in Formidable Pro?

Labels

This Discussion is public

Notifications

Hello all,

I have the default FP "Contact us" form, I am trying to populate the "Subject" text field with the WordPress Post Title by using Javascript script...

the section of my script that I´m using to try to pull the WP Post Title is:    jQuery('input[name="subject"]').val('<?php the_title(); ?>');

this piece of code works well with CF7 but is not working on FP

Is there a workaround to populate the Subject text field of my form with the WP Post Title?  the Posts are generated from WP not by FP...

Any Ideas?

 

Hi,

Formidable has a built in shortcode for this: [post_title]

Thanks

Chris

Discussion closed.