Forums

How To Get Radio & Checkbox Value In Email

LikeStuff 2d ago

Hi there,

I am using the radios and checkboxes group.  When I select an item, it is sending the name, not the value.  What am I doing wrong please?

Below is an example of the options and how I added them.  If I select the first one, pages1 is what comes in the email.

pages1=1-6 Pages

pages2=7-12 Pages

pages3=13-18 Pages

pages4=19 + Pages

Thanks!

LikeStuff 2d ago

Also, how do I get html content submitted in the email as well?  I would like the submitter to get all the information that is on the form including the HTML content.

Thanks!

Max_admin 2d ago
Answer

Hi LikeStuff

You are receiving the checkbox value which is correct, pages1 here is the value of the first option, if you want to receive 1-6 Pages then change the options:

1-6 Pages=1-6 Pages

The {email_content} will return the completed fields, HTML view content will not be added, if you need it then you need to add it to the Email body manually

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
LikeStuff 18h ago

The radio options are working but the checkbox options look weird.  I added them like this:

About=About

Services=Services

Request a Quote=Request a Quote

Price List=Price List

When I get the email it looks like this:["About","Services","Request a Quote","Price List"]

Is that how they are suppose to look?  If not, what am I doing wrong please and thanks!

You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger