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

Enable label values for dropdown mail tags #39

Open
aurovrata opened this issue Aug 10, 2023 · 1 comment
Open

Enable label values for dropdown mail tags #39

aurovrata opened this issue Aug 10, 2023 · 1 comment
Assignees

Comments

@aurovrata
Copy link
Owner

Dynamic Dropdown fields have values and labels that differ.

When a user selects an option, the value is stored in the field and submitted.

user would like to have the label displayed in the mail tags rather than the value.

This can be achieved with the mail tag filter, but would be better to have it done automatically by the plugin.

@aurovrata aurovrata self-assigned this Aug 10, 2023
@aurovrata
Copy link
Owner Author

There are 2 ways to achieve this,

  1. build the values to store both the value and the label, something along the lines of `value|label', which can then be split in a filter process when the mail tag value is generated and the value reset for the submitted field to ensure it is consistent with expected data.
  2. place a hidden field to capture the label value when the dropdown field changes, and use the hidden field value for the mail tag.

in both cases the functionality can be triggered by detecting the use of the corresponding mail tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant