You can permanently remove the "Previous Step" link, by editing the file workflow/engine/templates/cases/cases_ScreenDerivation.html and changing the code from:
Code: Select all {if $PREVIOUS_PAGE}
<td valign='top' class='tableOption' width='33%' align="left">
<table cellspacing="0" cellpadding="0" width='100%'>
<tr>
<td class='tableOption' align="left" width="120"><img src="/images/bulletButtonLeft.gif" width="6" /> <a class="tableOption" href='{$PREVIOUS_PAGE}' id="form[DYN_BACKWARD]" name="form[DYN_BACKWARD]" onclick="">{$PREVIOUS_PAGE_LABEL}</a></td>
<td class='tableOption'> </td>
</tr>
</table>
</td>
{/if}
To:
Code: Select all <!--
{if $PREVIOUS_PAGE}
<td valign='top' class='tableOption' width='33%' align="left">
<table cellspacing="0" cellpadding="0" width='100%'>
<tr>
<td class='tableOption' align="left" width="120"><img src="/images/bulletButtonLeft.gif" width="6" /> <a class="tableOption" href='{$PREVIOUS_PAGE}' id="form[DYN_BACKWARD]" name="form[DYN_BACKWARD]" onclick="">{$PREVIOUS_PAGE_LABEL}</a></td>
<td class='tableOption'> </td>
</tr>
</table>
</td>
{/if}
-->
The problem is that this eliminates the Previous Step link for ALL processes. If you only want to eliminate the link for certain processes, then you need to add code like this to
workflow/engine/methods/cases/cases_Step.php. In line 777, change this code:
Code: Select all case 'ASSIGN_TASK':
$oDerivation = new Derivation();
$oProcess = new Process();
$aData = $oCase->loadCase( $_SESSION['APPLICATION'] );
$aFields['PROCESS'] = $oProcess->load( $_SESSION['PROCESS'] );
$aFields['PREVIOUS_PAGE'] = $aPreviousStep['PAGE'];
Add a array of IDs for processes which should not have the "Previous Step" link displayed:
Code: Select all case 'ASSIGN_TASK':
//set to the IDs of processes which should not display the Previous Step link:
$aProcessesNoPreviousLink = array(
'12067430558ded97f8666c8026604805',
'20419177758dec3f7bedd17038026045',
'34414124958d30cc2853ae9014839646'
);
$oDerivation = new Derivation();
$oProcess = new Process();
$aData = $oCase->loadCase( $_SESSION['APPLICATION'] );
$aFields['PROCESS'] = $oProcess->load( $_SESSION['PROCESS'] );
if (in_array($_SESSION['PROCESS'], $aProcessesNoPreviousLink))
$aFields['PREVIOUS_PAGE'] = null;
else
$aFields['PREVIOUS_PAGE'] = $aPreviousStep['PAGE'];