cosyxu wrote:I think that would be a good solution. Could you please provide more details regarding this solution?
Create the file
workflow/engine/methods/messages/messages_NewCase.php with the following content:
Code: Select all<?php
if (!isset($_SESSION['WEB_ENTRY_MESSAGE'])) {
throw new Exception("Web entry message not defined.");
}
$aMessage = $_SESSION['WEB_ENTRY_MESSAGE'];
unset($_SESSION['WEB_ENTRY_MESSAGE']);
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent("xmlform", "xmlform", "login/showInfo", "", $aMessage);
G::RenderPage("publish", "blank");
In your
shared/sites/{workspace}/public/{process-uid}/{step-uid}Post.php file, change the code from:
Code: Select all /**
* By default show the case info, for the recently created case
* you can change it or redirect to another page
* i.e. G::header("Location: http://www.processmaker.com");
/*----------------------------------********---------------------------------*/
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent("xmlform", "xmlform", "login/showInfo", "", $aMessage);
G::RenderPage("publish", "blank");
To:
Code: Select all /**
* By default show the case info, for the recently created case
* you can change it or redirect to another page
* i.e. G::header("Location: http://www.processmaker.com");
*/
/*----------------------------------********---------------------------------*/
$_SESSION['WEB_ENTRY_MESSAGE'] = $aMessage;
$url = '../messages/messages_NewCase.php';
G::header('location: '.$url);
/*
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent("xmlform", "xmlform", "login/showInfo", "", $aMessage);
G::RenderPage("publish", "blank");
*/
If you want to change it in all future web entries that you create, then also change the same code in
workflow/engine/templates/processes/webentryPost.tpl.