Reference documentation and code samples for the Google Apps Chat V1 Client class FormAction.
A form action describes the behavior when the form is submitted.
For example, you can invoke Apps Script to handle the form.
Generated from protobuf message google.chat.v1.WidgetMarkup.FormAction
Namespace
Google \ Apps \ Chat \ V1 \ WidgetMarkup
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ action_method_name
string
The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.
The method name is used to identify which part of the form triggered the
form submission. This information is echoed back to the Chat app as part
of the card click event. You can use the same method name for several
elements that trigger a common behavior.
Returns
Type
Description
string
setActionMethodName
The method name is used to identify which part of the form triggered the
form submission. This information is echoed back to the Chat app as part
of the card click event. You can use the same method name for several
elements that trigger a common behavior.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class FormAction (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.WidgetMarkup.FormAction)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.WidgetMarkup.FormAction)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.WidgetMarkup.FormAction)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.WidgetMarkup.FormAction)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.WidgetMarkup.FormAction)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.WidgetMarkup.FormAction)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.WidgetMarkup.FormAction) \nReference documentation and code samples for the Google Apps Chat V1 Client class FormAction.\n\nA form action describes the behavior when the form is submitted.\n\nFor example, you can invoke Apps Script to handle the form.\n\nGenerated from protobuf message `google.chat.v1.WidgetMarkup.FormAction`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1 \\\\ WidgetMarkup\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getActionMethodName\n\nThe method name is used to identify which part of the form triggered the\nform submission. This information is echoed back to the Chat app as part\nof the card click event. You can use the same method name for several\nelements that trigger a common behavior.\n\n### setActionMethodName\n\nThe method name is used to identify which part of the form triggered the\nform submission. This information is echoed back to the Chat app as part\nof the card click event. You can use the same method name for several\nelements that trigger a common behavior.\n\n### getParameters\n\nList of action parameters.\n\n### setParameters\n\nList of action parameters."]]