Nov 15th, 2010, 3:05 AM
(Nov 12th, 2010, 11:11 AM)Ben Wrote: Excellent! Sounds like you've made a lot of progress.
If I understand you right, that additional info is just stored in a subarray? I think that's the way it works...
Could you do this?
PHP Code:$ecf_1 = $account_info["settings"]["ecf_1"];
And then stash that value in your form field?
- Ben
Hi Ben
Damn... Of course it is a subarray, why didn't i see that....??? Now it works perfect. Thanks a lot.
Now, i want to do the exact same thing when a user wants to edit a submitted form. I know that i can set it up in form tools, so that a user can edit their submissions directly from within formtools. But i want to fetch the data and put it in the form automatically because i do som price calculation from within the form.
So i added a link from within the edit_sbmission page in formtools to my form, and then added this code to my form.
PHP Code:
$form_info = ft_get_form_info($_SESSION["ft"]["form"]["form_id"]);
print_r($form_info);
and thought that this would work like when fetching the account info, but i get the following error:
Quote:Call to undefined function: ft_get_form_info()
Am i way of track here, or is this possible at all....?????