Buy Now
Sign in

Edit form with an upload action

nams09 , November 07 at 03:41
n
nams09

Hello!

I have an edit event that has an upload action. Whenever I try to edit the form my upload fields get a null value. In version 5 I could prevent this by using a custom code action with a code like this:

if(!empty($form->data["logo"])){
$form->data["sdata"]["logo"] = $form->data["logo"];
}

But I don’t know how this can be done now.

I’ll appreciate your help very much! :)