Two fields have blank results

How to fix form fields returning blank results in emails.

Overview

The issue occurs when the email template uses placeholder tags that do not match the actual field names, often due to spaces or incorrect identifiers.
Ensure the email template placeholders exactly match the field names without spaces, and update the template after any field name changes.

Answered
so sodc 04 Dec, 2014
I have two fields in my contact form that are not giving me filled out results.

One field is a text area. The field name is FamilyMembers. The field ID is Family Members. he label is: List names and ages of family members. The validation is alpha numeric.

The individual is to enter the name and age of their family members.
When the field data is entered., the result I receive via email is:
{Family Members} (yes with the space between Family and Members)

I have another field that is a drop down.
The field name is Referral. The field ID is Referral. The label is: How Did You Find Out about this Event?
No matter what choice in the dropdown, the result I receive via email is:
{How Did You Find Out About Contest?}

When I do a debug there is one error that shows up:
Array
(
)

Why is it on these two fields the inputted data is not being received?
so sodc 05 Dec, 2014
Answer
Never resolved. I just deleted form and made a new one.
Gr GreyHead 05 Dec, 2014
Hi sodc,

probably because spaces aren't permitted in HTML input names so they need to be e.g.Family_Members not Family Members.

Bob
so sodc 05 Dec, 2014
The space between Family Members is being put by the system, not me. No matter data is entered in the field the result comes out as Family Members.

The field name is FamilyMembers.
The field ID is Family Members. (Field ID can have spaces.)

I have changed the field ID to FamilyMembers and I still do not get the inputted data for family members text field. I tried a new form and the results are the same as the field above this field.
Gr GreyHead 06 Dec, 2014
Hi sodc,

ChronoForms is not adding any spaces and no, spaces are not allowed in IDs - though the ID isn't being used here.

It looks as though you haven't updated the Email template when you changed the name - please see your other thread on this topic.

Bob
This topic is locked and no more replies can be posted.