SkipCommands Command

One of the more unusual commands required in an action button is the SkipCommands command.  This allows you to skip a predetermined number of commands in the given sequence, based on the current condition of the form.  

 

For example, if a form has already been signed and a user clicks on the Sign button again, instead of signing the form again, the SkipCommands command will skip the sign commands and instead cause the user to be notified that the form has already been signed and prevent any further action. This and other commands can be added to your form using Action Buttons, Form Objects or Bubble Tips.

Using the SkipCommands Command

Command Parameters

The parameters for the SkipCommands command are as follows: #, {Test}, {Field|FieldSet}.  Here is what they mean and how they are used:

 

 

Note: Given the way the SkipCommands command works, you can see that the order of commands in the List of Commands dialog box is very important.  To change the order of the commands, select a command by clicking on it in the main window and use the Up or Down buttons to move it in the sequence.

Action Buttons

Commands can be added to Action Buttons by drawing a button using the Object Toolbar, then double-clicking to display the list of commands.  Press the Add button and select "SkipCommands" from the dropdown list.  Enter the number of commands to skip, the test criterion, and the name of the field or FieldSet that needs to meet the criterion in the Parameters (Params) section.

 

After clicking OK, you can resize your button, and select the text to edit it.  Double-clicking on the button again displays the List of Commands so you can add multiple commands to a single button.

 

 

Action Button

Command:

      • SkipCommands, #, {Test}, {Field|FieldSet...}

 

Example Parameters: