Gravity Forms - Populate Fields from Post Data

/ Published in: PHP
Save to your folder(s)

Populate Fields from Post Data
Add this to functions.php

Copy this code and paste it in your HTML
  1. add_filter("gform_field_value_cname", "populate_cname");
  2. function populate_cname($value){
  3. global $post;
  4. $cname = get_post_meta($post->ID, 'firstname', true);
  5. return $cname;
  6. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.