Email notices auto-wrapping - Post ID...

User 574966 Photo


Registered User
27 posts

Hi,
I am trying t use the web form builder to send data collected to Zoho using the Zoho email to database submission tool. It works well with one exception.

I need each collected field to be submitted on a single line, e.g. "Data : [Data Label from Form]" which works for all field types except the Checkbox style where the webform emailer is insisting on breaking the line, example.

Appears in the email as....
food_allergy_detail : Tree Nuts, Peanuts (or other ground nut), Celiac
Disease, Wheat Allergy, Lactose Allergy, Shellfish Allergy, Other

Should appear as (I know this may show as wrapped but it is all one line)
food_allergy_detail : Tree Nuts, Peanuts (or other ground nut), Celiac Disease, Wheat Allergy, Lactose Allergy, Shellfish Allergy, Other

What can I do to stop the form emailer from putting in a line break?
Thanks, Steve



User 122279 Photo


Senior Advisor
14,650 posts
Online Now

I guess there may be a reason why you want the output on one single line, but have you thought of people who submit the form from a smart-phone, how far they will have to scroll sidewise to check what they have submitted? The CC web form builder is a responsive programme after all, so wrapping is just the default.
That being said, there is a white-space: nowrap; css rule, but I'm not sure if you can add it from within WFB. Most likely you have to do it manually after export. This is how it is used:
p {
white-space: nowrap;
}
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 574966 Photo


Registered User
27 posts

Thanks for looking Inger. The auto email will never be rad by human eyes. I am hoping for a pure TEXT email, no html, output from the form emailer with the data that is rendered by use of the [data] not being modified by the emailer. My email as configured under Settings>Email Notices> Configure Email Message looks like this..

invoice : [invoice]
email : [email]
start_date : [start_date]
given_name : [given_name]
family_name : [family_name]
birth_year : [birth_year]
birth_month : [birth_month]
birth_day : [birth_day]
height : [height]
weight : [weight]
food_allergy : [food_allergy]
food_allergy_detail : [food_allergy_detail]

I need the data inserted within the [data] non formatted, just a strip from the checkbox field. Is there a way to force this, either within the application of by editing one of the config files?
User 187934 Photo


Senior Advisor
20,271 posts

Output to csv.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 574966 Photo


Registered User
27 posts

Thanks Eric. That works and I can import by manual action but I wanted this automated and triggering action downstream. Emailing the data ensures this happens without me having to write interface code.

Do you know the file or function that performs or defines the writing of the [data] element that is inserted into the email?
User 574966 Photo


Registered User
27 posts

Posted solution for any future reference.... File fbapp\php\mailer.cls.php line number 104

Change from
$this->message = wordwrap( $message, 70 );
To
$this->message = wordwrap( $message, 255 );

Did not test with any string longer than 255 as I do not need longer......

User 122279 Photo


Senior Advisor
14,650 posts
Online Now

Eric Rohloff wrote:
Output to csv.

Or to a DB.

Well, good that you found a solution, and thanks for posting it, Steve.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.