Posted By

paddy1228 on 02/12/13


Tagged

wordpress forms gravity


Versions (?)

Gravity Forms - Populate Fields from Post Data


 / Published in: PHP
 

Populate Fields from Post Data Add this to functions.php

  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  

You need to login to post a comment.