#45574 [Raven] Form element: Bug in email content
Ivan 2 years, 3 months ago
When a Placeholder is used instead of a Label in the Form Fields, the email content does not include the field identifier, in this case the Placeholder.
Email content instead of being “Name: Ivan” is “: Ivan”.
You can test it with https://jupiterx.artbees.net/course-2/contact/
You should change your code and if the Label string is empty, use the Placeholder string to identify the data sent.Alexander Hutsol Support Team 2 years, 3 months ago
Do you mean the content which you receive to your email address after the form is submitted?
Can you show a screenshot of the issue?
Regards.Ivan 2 years, 3 months ago
Hi, yes, I mean the email content.
I attached the screenshots.Aqib 2 years, 3 months ago
Sorry for the late response. I suggest you add text for both Label & Placeholder but if you don’t want to show Label in form simply disable the label settings https://monosnap.com/direct/nVNOaFTuSSyo41OkotGMONymuj0VI7
Thanks.Ivan 2 years, 3 months ago
Excellent, that workaround solved the issue.
Anyway, you should add the if statement in the code, something like:
$email_label = (!empty($label)) ? $label : $placeholder;
And also change what you suggested me in the “Course 2″ template settings, so that other users copying that template do not have this issue.
<div id=”gtx-trans” style=”position: absolute; left: 888px; top: 158px;”>
</div>Aqib 2 years, 3 months ago
Thanks for the suggestion. We will definitely consider this change in the new releases.