I\'ve been trying to figure out how to populate input fields in contact forms on my Wordpress website. I\'ve tried using a plugin called Contact Form 7 dynamic text extension, a
You can install this plugin
Contact Form 7 Dynamic Text Extension
Dynamic text and dynamic hidden fields are available using it. And you can use the following code to grab the current user info into your field.
[dynamictext dynamicname "CF7_get_current_user"]
Or as mentioned in the answer above:
[dynamictext your-email "CF7_get_current_user key='user_email' "]
Note also that you can use dynamichidden
for hidden fields like the following
[dynamichidden your-email "CF7_get_current_user key='user_email' "]
PS: I faced an issue with required hidden fields when I tried to use this dynamichidden*
, the shortcode appears on my website as a plain text.