diff --git a/contrib/forms/body_composition/view.php b/contrib/forms/body_composition/view.php
index 43a1ff05d..644d4a16b 100644
--- a/contrib/forms/body_composition/view.php
+++ b/contrib/forms/body_composition/view.php
@@ -212,7 +212,7 @@ if ($formid) {
-'" />
+
diff --git a/contrib/forms/clinical_notes/new.php b/contrib/forms/clinical_notes/new.php
index db6cdbb1c..c8b578ae3 100644
--- a/contrib/forms/clinical_notes/new.php
+++ b/contrib/forms/clinical_notes/new.php
@@ -225,7 +225,7 @@ if ($formid) {
-'" />
+
diff --git a/contrib/forms/clinical_notes/view.php b/contrib/forms/clinical_notes/view.php
index db6cdbb1c..c8b578ae3 100644
--- a/contrib/forms/clinical_notes/view.php
+++ b/contrib/forms/clinical_notes/view.php
@@ -225,7 +225,7 @@ if ($formid) {
-'" />
+
diff --git a/contrib/forms/contacts/new.php b/contrib/forms/contacts/new.php
index 6c8ff443c..fc516d2e7 100644
--- a/contrib/forms/contacts/new.php
+++ b/contrib/forms/contacts/new.php
@@ -53,7 +53,7 @@ formHeader("Form: contacts");
[Save]
-" class="link">[Don't Save]
+[Don't Save][Save]
-" class="link" target=Main>[Don't Save Changes]
+[Don't Save Changes]
-
diff --git a/contrib/forms/documents/print.php b/contrib/forms/documents/print.php
index 325249faf..a44d54d44 100644
--- a/contrib/forms/documents/print.php
+++ b/contrib/forms/documents/print.php
@@ -23,7 +23,7 @@ echo ("");
?>
-Done
+Done
template_mod = $template_mod;
$this->template_dir = dirname(__FILE__) . "/templates/evaluation/";
$this->assign("FORM_ACTION", $GLOBALS['web_root']);
- $this->assign("DONT_SAVE_LINK",$GLOBALS['webroot'] . "/interface/patient_file/encounter/patient_encounter.php");
+ $this->assign("DONT_SAVE_LINK", $GLOBALS['form_exit_url']);
$this->assign("STYLE", $GLOBALS['style']);
}
diff --git a/contrib/forms/example/3rd Party Form API.txt b/contrib/forms/example/3rd Party Form API.txt
index 59b2040cd..5efb4fc9a 100644
--- a/contrib/forms/example/3rd Party Form API.txt
+++ b/contrib/forms/example/3rd Party Form API.txt
@@ -37,7 +37,7 @@ To initialize the 3rd party php library (from interface/forms/your_script_name/m
$myArray['column_name1'] = 'my column1 value';
-The third argument to formSubmit() is a url to redirect to after the data from a form has been saved. If you set this to "0" (its default) then it will forward back to "openemr/interface/patient_file/encounter/patient_encounter.php". This is the preferred operation, since users expect to be taken back to the Patient Encounter screen after saving a new form.
+The third argument to formSubmit() is a url to redirect to after the data from a form has been saved. If you set this to "0" (its default) then it will forward back to $GLOBALS['form_exit_url']. This is the preferred operation, since users expect to be taken back to the Patient Encounter screen after saving a new form.
--->> formFetch("my_table", 'record id', 'columns wanted', 'activity state')
diff --git a/contrib/forms/example/new.php b/contrib/forms/example/new.php
index 1af3e0aee..0f878226d 100644
--- a/contrib/forms/example/new.php
+++ b/contrib/forms/example/new.php
@@ -5,7 +5,7 @@ formHeader("newerpatient form");
?>
<--REM note that every input method has the same name as a valid column, this will make things easier in save.php -->
-
diff --git a/contrib/forms/high_risk_screening_record/view.php b/contrib/forms/high_risk_screening_record/view.php
index 2b8a616d8..1f832a1fc 100644
--- a/contrib/forms/high_risk_screening_record/view.php
+++ b/contrib/forms/high_risk_screening_record/view.php
@@ -145,7 +145,7 @@ $rsi++;