When I try to use gform_get_meta within a plugin shortcode function it is returning empty.
For example:
$entry_id = intval($userinfo['last_order_id'][0]);
$create_date = gform_get_meta($entry_id, 'date_created');
$result .= "<p>Your $entry_id create date is $create_date.</p>";
$create_date is empty. Any ideas what I could be doing wrong here? The entry_id does output properly in the result.
I have verified that the form entry id is valid by viewing the entry - e.g. here is the entry Info for 146:
Entry Id: 146
Submitted on: 2012/08/21 at 9:46 am
User IP: 142.177.17.120
User: testmommy29@sunriseweb.ca
Embed Url: .../checkout
Subscription Status: Active
Start Date: 2012/08/21
Subscriber Id: I-7CV0D31TRTLH
Subscription Amount: $25.00