Allow submitting forms instead of redirecting

Created on 24 August 2023, over 1 year ago

Problem/Motivation

Currently this module is only useful for redirecting the user. It cannot submit forms.

The config page says this under the "Redirect URL" field, which suggests this behaviour is intended but not implemented yet:

Field for indicating redirect URL. If empty, this field will be ignored and a form exists around the input, the form will be submitted instead.

Steps to reproduce

1. Configure a click selector and input selector that target elements existing inside a form. Leave the "Redirect URL" parameter blank.
2. Navigate to a page with your form and use the voice input.
3. You will be redirected to the home page with a query parameter appended instead of the form submitting.

Proposed resolution

Make it so that if the "Redirect URL" is not populated and a form is detected the form auto-submits.

Remaining tasks

I will open an MR shortly.

Feature request
Status

Needs review

Component

Code

Created by

🇨🇦Canada dylan donkersgoed London, Ontario

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024