cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Email Labels
May 15, 2012
6:03 pm
Jason
Guest

Hello, I would the ability to add an alternate label for each form element: Label for website display (like what is currently available with cforms), and also an alternate label that will be used for the text only version of the Email.   

 

So the email will look like:

 

alternate_label1: value

alternate_label2: value

alternate_label3: value

 

where alternate label is a value I can type into each form element. 

 

Your assistance is greatly appreciated!!!  I have a CRM that expects very specific field labels, and the labels I'm using for website display are not in the correct format.

 

Thanks,

Jason

May 15, 2012
6:57 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

No coding required Jason.

You need to

  • enable custom NAMES/IDs for all the fields
  • give them proper IDs you can reference later [id:abc123]
  • then disable the email footer (data block)
  • and instead write/assemble your own data block including your custom labels and {variables} referencing you custom IDs set for the fields, eg myLabel = {abc123}
May 15, 2012
7:29 pm
Jason
Guest

Thanks Oliver!!! 

 

Oliver said:

No coding required Jason.

You need to

  • enable custom NAMES/IDs for all the fields
  • give them proper IDs you can reference later [id:abc123]
  • then disable the email footer (data block)
  • and instead write/assemble your own data block including your custom labels and {variables} referencing you custom IDs set for the fields, eg myLabel = {abc123}
May 18, 2012
9:25 am
sjhegjh
Guest

La calle *** boxer comercial de la Lauren Polo Golf zona asiática de ropa interior *** Estambul.

Sogukçesme Sokagi

May 19, 2012
5:16 pm
Jason
Guest

Hi Oliver, when creating my own data block, is this done in the my-functions.php file? 

 

My php knowledged is limited.  Can you please share an example, or let me know which function to modify and where I make the modification to? 

 

Thanks!

Jason

 

 

Oliver said:

No coding required Jason.

You need to

  • enable custom NAMES/IDs for all the fields
  • give them proper IDs you can reference later [id:abc123]
  • then disable the email footer (data block)
  • and instead write/assemble your own data block including your custom labels and {variables} referencing you custom IDs set for the fields, eg myLabel = {abc123}
May 19, 2012
5:32 pm
Jason
Guest

Hi Oliver, I'm using a multi-page form that includes 5 forms, and all I am trying to do is make the admin text email ouput my lable ids and values.   It is currently outputting the lable names and values, but I want it output the label ids instead. 

 

If I understand your prior email, I should disable the email footer, and then hard code the label ids in some function.   I'm wondering if there is an easier way and just modify the existing function to output the lable ids.

 

I did try writing in the label ids in the admin email config, i.e. {firstname}, but this only outputted "{firstname}".   I would like the lable id and the value outputted like this:

 

firstname: John Smith

Thanks!

Jason

 

Oliver said:

No coding required Jason.

You need to

  • enable custom NAMES/IDs for all the fields
  • give them proper IDs you can reference later [id:abc123]
  • then disable the email footer (data block)
  • and instead write/assemble your own data block including your custom labels and {variables} referencing you custom IDs set for the fields, eg myLabel = {abc123}
May 19, 2012
7:41 pm
Jason
Guest

Hello,

 

On my fifth form in a multi-page form, I have a field called Zip Code[id:mail_zip]

 

I am able to return the value in the admin email text version by adding the following:

 

{cf_form5_Zip Code}

 

However, I want to access the value by using the ID. 

 

When I put in the following:

 

{cf_form5_mail_zip}

 

it does not work.   I also tried just {mail_zip} and it didn't work either. 

 

Some of my field labels have special characters and are very long, so I want to access the fields using the IDs instead. 

 

Please let me know how to return the value using the IDs instead.   The help section only says the following:

 

Referencing form values in multi-page forms require specification of the actual form the field is on, eg. {cf_form6_Your Name} would reference the field labeled "Your Name" on form #6.    

 

It does not show how to reference the IDs.

 

Thanks!

Jason

May 20, 2012
9:35 pm
Tandem
Guest

Jason,

I think you may be looking at this through complicated eyes.

 

Just as Oliver explained, no coding or modification of any cforms functions or files is required. All you need to do is use the cforms configuration options and format the output anyway you want in the Admin Email Message Options section.

 

When Oliver is referring to data block, he is referring to the Admin TEXT message (Header) and Admin HTML message (Header) fields on the Admin Email Message Options screen.

 

The default form available right after install provides good example inside both of these fields on how to use the variables, the options screens include good explanations of everything with links to the help file for more details.

 

I would suggest you start with a simple one page form to get comfortable with cforms before moving on with custom IDs and multipage forms. It is much simpler that you think.

 

In regards to your latest post in this thread:  I wonder if you even need to worry about the custom IDs until the very end when you composing the e-mail message.

May 27, 2012
2:59 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Jason,

you can also use my-functions.php to have (any of) functions send you a copy of the tracking data via email, which will show you the entire data array and how to access the individual elements (a mail example is included).

July 17, 2012
3:28 pm
Walter Johnson
Guest

Where can I control which extra data comes through in the email? I want to eliminate certain fields that have analytic data to streamline our admin email. To be more specific I want to eliminate the time and hardware data that comes on with the email while still leaving the other fields intact.

August 25, 2012
10:28 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

take a look at my-functions.php, you can control the entire mail message(s) there, enrich, delete parts etc.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
46 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)