Feature Enhancement Proposal – Executing Actions from Forms

Feature: Executing Actions from Forms

Description: I’d like to suggest an improvement to the existing functionality regarding the execution of actions instead of flows triggered from forms. I have multiple use cases where using actions instead of flows would be more efficient.

Use-cases:

Retry mechanism for API errors
I’d like to display a form when one of our endpoints returns an error, allowing the user to manually retry the request. To achieve this, I currently need to create an action that performs the initial request and renders a form with a retry button. However, when the user clicks “Retry,” I have no choice but to use a flow, which forces me to replicate the same request logic. If it were possible to trigger an action directly from the form, I could avoid code duplication.

Updating app_metadata dynamically
Currently, in flows, the “Update User” action requires a valid JSON payload, which prevents me from updating app_metadata in a way that fits my needs. For example, I want to update an object in app_metadata where the key is the client_id:

{
  "pgtWhrUDp3HtqcBwrQQTLpL063jMvyo1": {
    "hasFeatureX": false
  }
}

In a flow, I would ideally write something like this:

{
  "[{{context.client.client_id}}]": {
    "hasFeatureX": false
  }
}

However, this is not possible because the system expects a strictly valid JSON format. If I could achieve this via an action, it would be much more flexible.

Would it be possible to introduce support for executing actions from forms? I believe this would greatly improve flexibility and reduce redundancy in implementation.

Looking forward to your thoughts on this!

Hi there!

Welcome to the Auth0 Community!

Thank you for creating this feedback card. Please make sure to upvote it so that it gets as many votes as possible and attracts as many community members as possible.

Thanks
Dawid