HTML Actions
HTML Actions provide a way to customize behavior before or after an action. For example, you can launch an HTML page before a Submit Changelist action. You can also launch an HTML page after a successful Submit Changelist action.
Run the example of pre and post submit
- In Edit > Preferences > Tools, check the Enable HTML Tools checkbox.
- Restart P4V.
- Select Tools > Manage Tools > HTML Actions.
- In the Manage HTML Actions dialog, set the value for the Pre URL field and the Post URL field. Note
On Windows, assuming
C:/Program Files/Perforce/
is the installation directory, these files would be located at:P4VResources/p4vjs/examples/submitAction/prepage.html
and
P4VResources/p4vjs/examples/submitAction/postpage.html
For example,
- Click OK.
When the user attempts to submit, the Pre Sumit Page appears. When the user clicks Next, the Submit Changelist dialog appears. When the user clicks Sumit, the Post Submit Page appears.
The example prepage.html and postpage.html use P4VJS, which is documented at P4VJS User Guide.
Alternatively, if you want to completely replace the standard P4V Submit dialog with a custom Submit dialog that you create:
- Write a prepage.html that presents your custom Submit dialog to the user.
- Close this prepage.html without calling
p4vjs.nextPage()
, such that the standard P4V Submit dialog is not called.
Your search for returned result(s).