Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Redirect After Form Submission #2145

Open
hay-kot opened this issue Nov 9, 2024 · 0 comments
Open

Support Redirect After Form Submission #2145

hay-kot opened this issue Nov 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hay-kot
Copy link

hay-kot commented Nov 9, 2024

Is your feature request related to a problem? Please describe.

Not really a problem as much as a limitation of the current behavior.

Describe the solution you'd like

When creating a form for listmonk I would like the ability to specify a redirect URL to send the user to instead of showing them the listmonk page. For example, Convert Kit allows a user to create a redirect link, or show a success message in their form builder.

CleanShot 2024-11-09 at 12 12 40@2x

I would love it if I could add a hidden input to manage a redirect to a custom page after submission.

<form method="post" action="..." class="listmonk-form">
          <div>
          <h3>Subscribe</h3>
          <input type="hidden" name="nonce" />
          
          <p><input type="email" name="email" required placeholder="E-mail" /></p>
          <p><input type="text" name="name" placeholder="Name (optional)" /></p>
      
        <p>
          <input id="60e8f" type="checkbox" name="l" checked value="60e8f519-972b-43b9-a92f-0ee72e32ff89" />
          <label for="60e8f">Launch List</label><br /><span>Launch List</span>
        </p>

        <!-- Redirect setting/definition --!>
        <input name="redirect_url" value="https://example.com/" type="hidden"/>
        
        <p><input type="submit" value="Subscribe" /></p>
    </div>
</form>

Then if redirect_url is found in the form fields, you'd be redirected to whatever value that is.

@hay-kot hay-kot added the enhancement New feature or request label Nov 9, 2024
@hay-kot hay-kot changed the title Support Redirect after Support Redirect After Form Submission Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant