Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions PHP-Form-Builder/form/form-display.vm
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
#end
#set($validFormFields="#buildValidFormFieldsArray()")
[system-view:external]
<?php
define("AUTH_FILE_PATH", "${formConfigContent.getChild('authFilePath').text}");
error_reporting(E_ALL);
<?php
#if( $wayToSave.text == "save-to-excel" || $wayToSave.text == "save-to-cms")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually won't work because $wayToSave is a loop variable from lines 11-19 above when setting some flags.

Instead the following will work:

#if( $excelSave == "true" || $cmsSave == "true")

define("AUTH_FILE_PATH", "${formConfigContent.getChild('authFilePath').text}");
#end
error_reporting(E_ALL);
if (count($_POST) > 0) { //POSTED FORM, PROCESS IT
$message = "";
$subject = "${callingPageData.getChild('system-data-structure').getChild('ifEmailing').getChild('emailHeading').text}";
Expand Down