Update Configuration Settings

Update Configuration Settings

You can update the configuration settings by overriding the BeforeStartProcessing() function.

 

Example:

 
class MyCustomUploadFolder

         extends FM_ExtensionModule
{
function BeforeStartProcessing()
{
  $this->logger->LogInfo("BeforeStartProcessing is called");
 

  $this->config->file_upload_folder =

                                 '../../../uploads/form1';
  return true;
}
}

Here are the configuration settings you can update:

 

form_file_folder

The location to save the files (csv file, the log file etc)

 

load_values_from_url

Whether to allow load values from the URL. For example, if you enter the URL of the form as myform.php?Name='John' the value John will be pre-filled in the Name field of the form

 

allow_nonsecure_file_attachments

In the file upload fields, if the user uploads executable file types, (including PHP script, HTML files and other scripts) it is counted insecure and is not saved by default. Make 'allow_nonsecure_file_attachments' true to allow such file types.

 

file_upload_folder

The custom folder to save file uploads. By default, file uploads are saved under an upload folder under the form_file_folder (see above).