In CFV<6 it was possible to remove a variable from the $form->data array by using unset.
I tried the same in CFV6 to no avali:
I created a simple test form and I'm not sure what is happening. The setup:
a form with a textbox (myfield) and a submit button.
In the submit event I put a php action and a debugger.
If I put the 1st line of the above code in the php action the result is:
If I put both lines the result is:
Anyway what I want to accomplish is this: How can I edit uploaded files in a form?
I edit a form and don't want the file upload field to be updated when it is not changed.
Thank you
maxx
I tried the same in CFV6 to no avali:
$this->data['myfield'] = "foo"; // this works
unset($this->data['myfield']); // not working
I created a simple test form and I'm not sure what is happening. The setup:
a form with a textbox (myfield) and a submit button.
In the submit event I put a php action and a debugger.
If I put the 1st line of the above code in the php action the result is:
Array
(
[option] => com_chronoforms6
[cont] => manager
[chronoform] => myform
[event] => submit
[myfield] => foo
[button] =>
[_ga] => GA1.2.561620972.1461746531
[cookiesDirective] => 1
[300gp] => R393630445
...
If I put both lines the result is:
Array
(
[option] => com_chronoforms6
[cont] => manager
[chronoform] => fmyform
[event] => submit
[myfield] => a value
[button] =>
[_ga] => GA1.2.561620972.1461746531
[cookiesDirective] => 1
[300gp] => R393630445
...
Anyway what I want to accomplish is this: How can I edit uploaded files in a form?
I edit a form and don't want the file upload field to be updated when it is not changed.
Thank you
maxx