umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
29 stars 0 forks source link

Form workflow 'Send to URL' - Sending Display name instead of Alias #1202

Closed JasonMcAndrew closed 2 months ago

JasonMcAndrew commented 3 months ago

When configuring a workflow for a form of type 'Send form to URL', the payload sent to the URL contains the field display names instead of the Alias.

Here are the field display names for two forms, one English, one French. image image

On both forms First Name and Prénom have the same alias. It would make much more sense for the alias to be sent in the payload.

image

There is an option to add a manual mapping, which allows you input alias names. When using the default mapping the alias names aren't included in the payload.

image

Reproduction

Steps to reproduce

On a new or existing form, Configure workflow > Add Workflow > Send form to URL

Expected result

I would expect alias names to be sent in the payload instead of display names. Display names are different between forms for each language.

Actual result

See initial screenshots.

AndyButland commented 3 months ago

Agree it would make more sense to use the alias here. Though we'll likely have to make it a setting or configuration item, as there could be integrations already relying on the values that are currently sent by this workflow.

Could you let us know what version of Forms you are using please?

JasonMcAndrew commented 3 months ago

Agree it would make more sense to use the alias here. Though we'll likely have to make it a setting or configuration item, as there could be integrations already relying on the values that are currently sent by this workflow.

Could you let us know what version of Forms you are using please?

Hi Andy,

That makes sense, having it as a setting to select when configuring the workflow.

We are currently on version 7.5.4.

AndyButland commented 3 months ago

OK - I do think we should introduce this as an option but just to set expectations I'm afraid it won't be something we port back to Forms 7 as that's been "end of life" for some time now.

dtng95 commented 2 months ago

Hi @JasonMcAndrew, This issue has been fixed and will be included in the next release. We introduced a new setting for "Send to URL" workflow, called "Default Element For Fields". If you leave this setting empty, or set it as "Caption", the payload will contain field display name. Otherwise, it will contain alias.

image
JasonMcAndrew commented 2 months ago

Fantastic! Thank you for such a quick response and turnaround of this feature, It's a great improvement.