Hi,
I'm trying to get the forms data from the database and show it in a custom page which is similar to Edit submission page that is already available in FormTools.
I manage to figure out how to pass the client info to my page using the codes below which i found from other threads.
But, I cannot figure out how to pull the data from the database and insert each value into the fields like you did in edit submission.
I tried using ft_api_show_submissions api, but it just shows all the data I had in the database.
I have also seen the registration demo's code. However I think this method only works in multi-page form?
Is there a function or variable that I can use like $_SESSION?
Basically, what I'm trying to do is to make a custom edit submission page that also have the client's info stored in the database.
I'm trying to get the forms data from the database and show it in a custom page which is similar to Edit submission page that is already available in FormTools.
I manage to figure out how to pass the client info to my page using the codes below which i found from other threads.
PHP Code:
$account_info = ft_get_account_info($_SESSION["ft"]["account"]["account_id"]);
$emailaddress = ($account_info['email']);
$client_first_name =($account_info['first_name']);
$client_last_name =($account_info['last_name']);
$client_store = ($account_info["settings"]["ecf_1"]);
$client_store_type = ($account_info["settings"]["ecf_2"]);
But, I cannot figure out how to pull the data from the database and insert each value into the fields like you did in edit submission.
I tried using ft_api_show_submissions api, but it just shows all the data I had in the database.
I have also seen the registration demo's code. However I think this method only works in multi-page form?
Is there a function or variable that I can use like $_SESSION?
Basically, what I'm trying to do is to make a custom edit submission page that also have the client's info stored in the database.