I have a Contact form 7 that the client insists goes to different mailboxes based on checkbox selection.
I can do this by:
[checkbox* your-recipient class:checks label_first use_label_element exclusive "Sales | email@address1.co.uk" "Rent| email@address2.co.uk"]
This works perfectly but on the mail form they want the subject to be the key and not the value?
Subject: Contact form enquiry - [your-recipient]
This returns either:
Subject: Contact form enquiry - email@address1.co.uk Subject: Contact form enquiry - email@address2.co.uk
Is there a way to make the subject read:
Subject: Contact form enquiry - Sales Subject: Contact form enquiry - Rent
Many Thanks
Advertisement
Answer
To get value before pipe, you use [raw{field name}] in your case :
Subject: Contact form enquiry - [_raw_your-recipient]