Skip to content
Advertisement

How can I make Contact form 7 return the checkbox label and not the value data on mailing a form?

I have a Contact form 7 that the client insists goes to different mailboxes based on checkbox selection.

I can do this by:

JavaScript

This works perfectly but on the mail form they want the subject to be the key and not the value?

JavaScript

This returns either:

JavaScript

Is there a way to make the subject read:

JavaScript

Many Thanks

Advertisement

Answer

To get value before pipe, you use [raw{field name}] in your case :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement