Difference between revisions of "Delete Redirect Template"

From SmartWiki
Jump to: navigation, search
Line 8: Line 8:
 
==Delete Redirect field==
 
==Delete Redirect field==
 
Enter the text in the Delete Redirect field and click Save.<br/>
 
Enter the text in the Delete Redirect field and click Save.<br/>
[[Image:DeleteRedirect1.png]]
+
[[Image:DeleteRedirect1.png|border]]
  
 
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will use display whatever you have in the template.<br/>
 
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will use display whatever you have in the template.<br/>
[[Image:DeleteRedirect2.png]]
+
[[Image:DeleteRedirect2.png|border]]
  
  
Line 17: Line 17:
 
The template will also run through the variable processor, so you can reference variables based on the deleted object or anything attached to it including the parent.
 
The template will also run through the variable processor, so you can reference variables based on the deleted object or anything attached to it including the parent.
  
Enter the text, including the variable references, in the Delete Redirect field and click Save.<br/>
+
Enter the text, including the variable references, in the Delete Redirect field and click Save. In the example below the name of the deleted record will be included in the message. <br/>
[[Image:DeleteRedirect3.png]]
+
[[Image:DeleteRedirect3.png|border]]
  
 
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will be processed via the variable processor and display the text and the variable value in the template.<br/>
 
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will be processed via the variable processor and display the text and the variable value in the template.<br/>
[[Image:DeleteRedirect4.png]]
+
[[Image:DeleteRedirect4.png|border]]
  
  
Line 27: Line 27:
 
The template will also allow for formatting using HTML.
 
The template will also allow for formatting using HTML.
  
Enter the text, including the HTML, in the Delete Redirect field and click Save.<br/>
+
Enter the text, including the HTML, in the Delete Redirect field and click Save. In the example below the name of the deleted record will be highlighted in red. <br/>
[[Image:DeleteRedirect5.png]]
+
[[Image:DeleteRedirect5.png|border]]
  
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will display the text including any HTML formatting.<br/>
+
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will display the text including the HTML formatting.<br/>
[[Image:DeleteRedirect6.png]]
+
[[Image:DeleteRedirect6.png|border]]
 +
 
 +
 
 +
==Conditional message==
 +
If you need to show different content based on a value within the record (e.g. status, template type, org category) or based on the current users role then you can use [[sslogic]].
 +
 
 +
Enter the text, including the sslogic, in the Delete Redirect field and click Save. In the example below the first message is displayed when the Template type is "Contact", and the second message displayed in all other cases. <br/>
 +
[[Image:DeleteRedirect7.png|border]]
 +
 
 +
Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will display the text including the appropriate message based on the validation within the sslogic.<br/>
 +
[[Image:DeleteRedirect8.png|border]]

Revision as of 10:30, 7 October 2013

The Delete Redirect Template allows users to customize the landing page after an entity has been deleted.

This includes deletion of UTA level 1s, 2s and 3s, as well as company and contact records.

The deletion must occur from within the record itself, using the Delete button, rather than from a list view.


Delete Redirect field

Enter the text in the Delete Redirect field and click Save.
DeleteRedirect1.png

Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will use display whatever you have in the template.
DeleteRedirect2.png


Using Variables

The template will also run through the variable processor, so you can reference variables based on the deleted object or anything attached to it including the parent.

Enter the text, including the variable references, in the Delete Redirect field and click Save. In the example below the name of the deleted record will be included in the message.
DeleteRedirect3.png

Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will be processed via the variable processor and display the text and the variable value in the template.
DeleteRedirect4.png


Using formatting

The template will also allow for formatting using HTML.

Enter the text, including the HTML, in the Delete Redirect field and click Save. In the example below the name of the deleted record will be highlighted in red.
DeleteRedirect5.png

Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will display the text including the HTML formatting.
DeleteRedirect6.png


Conditional message

If you need to show different content based on a value within the record (e.g. status, template type, org category) or based on the current users role then you can use sslogic.

Enter the text, including the sslogic, in the Delete Redirect field and click Save. In the example below the first message is displayed when the Template type is "Contact", and the second message displayed in all other cases.
DeleteRedirect7.png

Once you delete one of the corresponding entities (e.g. delete a level one record) it will check that the Delete Redirect Template is populated and, if so, then it will display the text including the appropriate message based on the validation within the sslogic.
DeleteRedirect8.png