Form Tools
ft_update_submission fail ? [SOLVED] - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: ft_update_submission fail ? [SOLVED] (/showthread.php?tid=330)



ft_update_submission fail ? [SOLVED] - nomad - Oct 14th, 2009

Hi,
I would like to use ft_update_submission to update submission from my own php code. I think that right use is:

ft_update_submission ($form_id, $submission_id, $infohash)

The function runs without error, returns array with susscess confirmation, field "Last modified" is updated, but other fields I woul like to update contain old values.

My code:
$options = array(
"name_of_col1"=>1, "name_of_col2"=>1,"field_ids"=>"166 173", "editable_field_ids"=>"166 173");
ft_update_submission (5, $_GET["id"], $options);

What can be wrong?

Thanks for any idea.


RE: ft_update_submission fail ? - nomad - Oct 15th, 2009

Hi guys,
mornings are clever then evenings, I help myself today, here is solution which works for me:

Code:
ft_update_submission ($form_id, $submission_id, $infohash)

where

Code:
$infohash=array(
"name_of_col1"=>new_value,  // list of database col names + values
"name_of_col2"=>new_value,
...,
"field_ids"=>"x,y,.....",  // list od ID fields corresponding to col names above
"editable_field_ids"=>array(x,y,....) // list od used ID fields you have to mark as editable
);

Maybe could save some time for somebody.

Nice day to all.


RE: ft_update_submission fail ? [SOLVED] - russellfeeed - Nov 9th, 2012

thanks nomad, I was looking for the format of infohash as I need to process it in Hooks Manager


RE: ft_update_submission fail ? [SOLVED] - Tysonarton - Jun 23rd, 2021

The update submission failure is a main theme of this blog post that can clearly tell about the relative data. Nomad is a junior member that has shared the thread post with the easyessay accommodation with the legalize way and multiple stories in the graceful sense.


how to get free v bucks in fortnite - tom0099 - Aug 4th, 2021

This right time to get free v bucks how to get free v bucks in fortnite no log in and sign up required.