Hello Yuniar/All,
First of all, awesome php package! I'm buying this for every client set
up we have! Saves us a lot of time by taking out a lot of the manual
markup normally required to administer forms like this!
Anyway, I have one question for you that's been bugging me for a while:
I understand your time is important, so I'm willing to pay you for your
time and effort!
I'm trying to pass on a hidden field on the edit_form.php page through an external link like so:
edit_form.php?form_owner=1
Where would I need to put the
code<input type="hidden" name="form_owner" value="<?php print $_GET[form_owner]; ?>">code
in the edit_form page so it can pass it on to the processor (save.php?)
The form_owner is already a column in the ap_forms table. How do I go
about getting that inserted as well as updated after I have created the
form or when I modify it? e.g. when I go to edit it
(edit_form.php?id=6), it saves the form but wipes out the form_owner id
I've manually updated through the db.
I've looked in save.php and saw where it adds
$result = ap_forms_insert($form_input);
but how do I get that field on the edit_forms page to push my hidden
field so it makes it part of the form_input[array]?
In save.php I've added
$form_input['form_owner'] = $form_object->form_owner;
after
$form_input['form_id'] = $form_id;
Any pointers?