GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action (google_api_chat v0.30.0) View Source

An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.


  • function (type: String.t, default: nil) - Apps Script function to invoke when the containing element is clicked/activated.
  • loadIndicator (type: String.t, default: nil) -
  • parameters (type: list(GoogleApi.Chat.V1.Model.GoogleAppsCardV1ActionParameter.t), default: nil) - List of action parameters.
  • persistValues (type: boolean(), default: nil) - Indicates whether form values persist after the action. The default value is false. If true, form values remain after the action is triggered. When using LoadIndicator.NONE for actions, persist_values = trueis recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If false, the form values are cleared when the action is triggered. When persist_values is set to false, it is strongly recommended that the card use LoadIndicator.SPINNER for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action{
  function: String.t() | nil,
  loadIndicator: String.t() | nil,
    [GoogleApi.Chat.V1.Model.GoogleAppsCardV1ActionParameter.t()] | nil,
  persistValues: boolean() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.