The Dynamic actions script field, on the Context Menu form, defines a script. The script populates a list context menu with dynamic options, such as filters or views.

The following JavaScript variables are available to the dynamic actions script when it is executed.
The following example displays a list title menu item that controls the number of records per page in the list view.
g_contextMenu.addAction('50', g_itemName, 'showRowsPerPage("50");', g_itemOrder);
Note: The action script for this item must define the showRowsPerPage function so that when selecting this menu item, that function is called with an argument of 50.