{"title":"Gesture Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-gesture-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-gesture-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-gesture-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies a gesture that runs the action on a device with a touch interface, such as the phone client.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":163,"chars":52},{"level":2,"title":"Property value","slug":"property-value","at":215,"chars":343},{"level":2,"title":"Syntax","slug":"syntax","at":558,"chars":36},{"level":2,"title":"Remarks","slug":"remarks","at":594,"chars":123},{"level":2,"title":"Example","slug":"example","at":717,"chars":1956},{"level":2,"title":"Related information","slug":"related-information","at":2673,"chars":178}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecifies a gesture that runs the action on a device with a touch interface, such as the phone client.\n## Applies to\n Page Action\n Page File Upload Action\n## Property value\nValue|Available or changed with|Description\nNone|runtime version 1.0|No gesture for the action.\nLeftSwipe|runtime version 1.0|Swipe in from the right edge of the touch interface.\nRightSwipe|runtime version 1.0|Swipe in from the left edge of the touch interface.\nContextMenu|runtime version 1.0|The action has a context menu.\n## Syntax\n```al\nGesture = None;\n```\n## Remarks\nYou typically use the Gesture property on list type pages for running an action on items in a repeater control.\n## Example\nThe following example shows how to use the ContextMenu value to make an action available through a context menu on mobile devices, rather than as a swipe gesture:\n```al\npage 50100 \"Customer List Enhanced\"\n{\n    PageType = List;\n    SourceTable = Customer;\n\n    layout\n    {\n        area(Content)\n        {\n            repeater(Customers)\n            {\n                field(\"No.\"; Rec.\"No.\")\n                {\n                    ApplicationArea = All;\n                }\n                field(Name; Rec.Name)\n                {\n                    ApplicationArea = All;\n                }\n            }\n        }\n    }\n\n    actions\n    {\n        area(Processing)\n        {\n            action(\"Send Email\")\n            {\n                ApplicationArea = All;\n                Caption = 'Send Email';\n                Image = Email;\n                Scope = Repeater;\n                Gesture = ContextMenu;  // Makes action available in context menu\n\n                trigger OnAction()\n                begin\n                    // Email sending logic here\n                end;\n            }\n\n            action(\"Create Sales Quote\")\n            {\n                ApplicationArea = All;\n                Caption = 'New Sales Quote';\n                Image = NewSalesQuote;\n                Scope = Repeater;\n                Gesture = RightSwipe;  // Available as right swipe gesture\n\n                trigger OnAction()\n                begin\n                    // Sales quote creation logic here\n                end;\n            }\n        }\n    }\n}\n```\nIn this example:\n The \"Send Email\" action with `Gesture = ContextMenu` will be available through the context menu when users long-press or right-click on a customer record\n The \"Create Sales Quote\" action with `Gesture = RightSwipe` will be available as a right swipe gesture on touch devices\n Both actions have `Scope = Repeater` to make them available at the record level rather than the page level\n## Related information\n../devenv-implementation-tips-gestures-property\nIntroducing the Dynamics 365 Business Central Mobile App<../devenv-introducing-business-central-mobile-app>"}