Is there a way to show data on other form
I tried this code but it shows data from the wordpress ..
I want to show the value of the fields in other form
can you help me please ?
<?php
/**
Plugin Name: Formdatashowup
*/
addaction( 'wpajaxnoprivgetuserinformation','smartformextgetuserinformation');
addaction( 'wpajaxgetuserinformation','smartformextgetuser_information');
function smartformextgetuserinformation(){
requireonce SMARTFORMS_API;
$query=new SmartFormsQuery(17);
$query->AddField('rnField87');
$query->AddField('rnField104');
$query->AddCondition('_UserId','=',get_current_user_id());
$result= $query->GetResults();
echo json_encode(array(
'name' => $result[0]['rnField87'],
'email' => $result[0]['rnField104']
));
die();
}
2
votes
![](https://secure.gravatar.com/avatar/df0f44a665df47ecae7856d4eb95c76e?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)