Hi,
Is there a way to get the label from a select field?
I have set the value:label (I need it that way), but now the value is sent in emails, and I would like to change it to the label.
Thank you!
Hi,
Is there a way to get the label from a select field?
I have set the value:label (I need it that way), but now the value is sent in emails, and I would like to change it to the label.
Thank you!
If you don’t need the value:label syntax for any other Action than drop it, and just add each Option on a new line. Then your valueund label are the same thing.
If you are comfortable writing PHP than you could use the wp_mail filter, to modify then message string and swap out your value for the label.
You might aswell write a custom dynamic-data-tag that returns your Options from some PHP array and use the same array so that you don’t have to manually maintain two different “truths” of what value corresponds to what label.
Ai can be a great assistant in setting this up.
Just give it the documentation above, the code from includes\integrations\form\actions\email.php inside the bricks Theme and the documentation of how to create your own Dynamic Data Tag:
Best Regards
Suat
Yes, wp_mail did the trick.
Thank you!