FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ft_update_submission fail ? [SOLVED]
#1
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.
Reply
#2
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.
Reply
#3
thanks nomad, I was looking for the format of infohash as I need to process it in Hooks Manager
Reply
#4
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)