Hello Everyone,
I have a form which is used to Edit my entried in Table created previously from users with chronoforms. (Chronoforms V4 User)
The table has an uploaded filename also.
The problem is that if the user (when editing his data) does not upload a file then the filename entry is replaced with blank.
I tried to use some custom code to get it done but with no luck
Here is my code:
I have a form which is used to Edit my entried in Table created previously from users with chronoforms. (Chronoforms V4 User)
The table has an uploaded filename also.
The problem is that if the user (when editing his data) does not upload a file then the filename entry is replaced with blank.
I tried to use some custom code to get it done but with no luck
Here is my code:
<?php
$uploadedfile = $row->data[‘uploadedfile’]; // (I have created a hidden box that gets the filename from the Database Loader Action)
$uploadedfile2 = $row->data[‘uploadedfile2’]; // (I have placed this after the upload files action
If ($uploadedfile2 != NULL){
$row->data[‘uploadedfile’] = $uploadedfile2;
}
?>