close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Blank "From" / UTC time format / Submit button being included as dynamic variable / Renaming dynamic Variables

Thread began 4/08/2014 7:08 am by Nathon Jones Web Design | Last modified 4/28/2014 1:28 pm by Jason Byrnes | 1315 views | 21 replies |

Nathon Jones Web Design

Blank "From" / UTC time format / Submit button being included as dynamic variable / Renaming dynamic Variables

Few problems with Universal E-mail...

We have the behaviour installed on a confirmation page:
http://www.ledwarehouseuk.com/contact-led-warehouse-confirm.php

...which receives values from the form on our contact page:
http://www.ledwarehouseuk.com/contact-led-warehouse.php

When we submit the form, the From field is blank however when we click "Reply" it is correctly filled in. This is the value we're using for the From field: <?php echo(WA_getSavedFormValue("contactFORM","LEDContactEmail")) ?>

Rather than UTC can we display GMT? Can we also have the date in UK format? It is currently m-d-yyyy

Our contact form has a Submit button, obviously, however this button is being included as one of the dynamic variables when we receive the e-mail. How do we prevent that?

Is it possible to customise the titles of the dynamic variables or does that have to be done on the contact form?

Thank you.
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

for the form address, try using:

<?php echo(isset($_POST['LEDContactEmail'])?$_POST['LEDContactEmail']:""); ?>


for the time zone, add this at line 1 of the confirm page:

<?php date_default_timezone_set('Europe/London'); ?>

The list of valid timezones is here...

http://www.php.net/manual/en/timezones.php


for the date display:

edit the email template file. the code generates the date will look like this:
<?php echo date("n-j-Y", $now); ?>

you change the formatting characters:
"n-j-Y"

to the format you would like to use, see the php date manual for more details:

http://php.net/manual/en/function.date.php


This tutorial:
http://www.webassist.com/tutorials/Customize-form-elements-in-your-form-generated-emails

has details on customizing the email to suppress certain elements lie the submit button and customizing the email

Sign in to reply to this post

Nathon Jones Web Design

Thank you for this advice Jason, but I'm scared to touch this now because this form has suddenly become embroiled into the problems we're having with the payment process.

As getting the site online and taking payments is the priorty, I'd really like to get that resolved first then I can come back to this form.

Thank you.
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

in your other thread, i asked you to add code to the failure page that would show the contents of the session.


for testing checkout, use a clean browsing session. in other words close the browser completely and restart it so that sessions created by other pages in the site will not add confusion to debugging the checkout process, basically, since this form is saving to a session, it will also show on the failure page along with the paypal response.


your testing to many things in the same browsing session and causing confusion when trying to look at the troubleshooting information.

in web site testing, you should be constantly restarting the browser.

Sign in to reply to this post

Nathon Jones Web Design

Hi Jason,

I've been trying to follow this tutorial, as recommended:
http://www.webassist.com/tutorials/Customize-form-elements-in-your-form-generated-emails

...but there is nothing in there about how you change the titles of the displayed form fields. Here is how my form arrives:

Customer service enquiry for LED Warehouse Ltd
A customer has submitted an enquiry via the contact form on the LED Warehouse Ltd website.

Form Submitted: 4-25-2014 | 12:49 PM UTC
LEDContactName: Nathon Jones
LEDContactPhone: 01671 404924
LEDContactEmail: info@nathonjones.com

LEDContactOrder: 12345
LEDContactDetail: Testing testing 32345
contactbtn:

Additional Notes: yadda yadda

How do I change the titles such as LEDContactName, LEDContactOrder etc?
Also, "contactbtn" which is the name of the Submit button on the contact form page, is being displayed as if it were a form field?

Would appreciate your advice
Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

Adding:
<?php echo(isset($_POST['LEDContactEmail'])?$_POST['LEDContactEmail']:""); ?>

...in the From field hasn't resolved the problem. The e-mail is still arriving with a blank "From" field.
Would appreciate your advice and assistance.
Thank you.
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

Did you enter a from display name?

In some server configurations, the from address may show blank if a from display name is entered, some may show a blank from address if no from display name is entered. try both with and without.

Sign in to reply to this post

Nathon Jones Web Design

There is no option to enter a "From" display name in the Create Email Message behaviour.

Sign in to reply to this post

Jason ByrnesWebAssist

yes there is, click the from button to get to the advanced from settings.

Sign in to reply to this post

Nathon Jones Web Design

Had no idea those could be clicked!

What should I enter in the From field (it is blank just now) considering that we had to hack the From e-mail address from being:

<?php echo(WA_getSavedFormValue("contactFORM","LEDContactEmail")) ?>

to being...
<?php echo (isset($_POST['LEDContactEmail'])?$_POST['LEDContactEmail']:""); ?>

Out of interest, why didn't <?php echo(WA_getSavedFormValue("contactFORM","LEDContactEmail")) ?> work?

Thank you
NJ

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...