Forums

Edit form with an upload action

nams09 07 Nov, 2017
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!🙂
This topic is locked and no more replies can be posted.