Skip to content

Use dropdown label and value #751

Answered by engram-design
jmauzyk asked this question in Q&A
Discussion options

You must be logged in to vote

So we'd need to introduce the field-picker for integrations to use Label and Value for option fields (Checkboxes, Radio, Dropdown). This might also carry over to variable picker values as well, for email notifications. For email notifications, you can technically use Twig in most places, using {myDropdownField.label}, but then this gets tricky for multi-value fields like Checkboxes or Multi-Dropdown.

To get around this, firstly you could modify the mapped values through an event.

use verbb\formie\events\ModifyFieldIntegrationValueEvent;
use verbb\formie\integrations\emailmarketing\Freshdesk;

Event::on(Freshdesk::class, Freshdesk::EVENT_MODIFY_FIELD_MAPPING_VALUE, function(ModifyFieldInte…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jmauzyk
Comment options

Answer selected by jmauzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants