close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation not working & 1 field is missing in the email.

Thread began 5/10/2011 9:37 am by paulp123370 | Last modified 5/16/2011 11:55 am by paulp123370 | 3121 views | 14 replies |

paulp123370

Validation not working & 1 field is missing in the email.

Hello,

2 Problems.

1. I cannot get the validation to work properly for the text_areas (I'm trying to make it so that the entry length for the text_areas are 1 Char Min and 300 Char Max).

2. The first text_area field ("Significant Changes....") results do not show up in the email.

All of the files are attached and I've included a notepad file with the webaddress to the current online form.

Could I please have some assistance with this.

Thank you!

Attached Files
paul_p_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

both problems are caused by invalid form element names.



form element names must conform to the following rules:

1) You can only use letters and numbers, the only exception is the underscore "_" character. Spaces are not allowed

2) The first character in the name must be a letter.


your from element names contains spaces which is causing the problem with validation and causing them to be dropped from the email.

Sign in to reply to this post

paulp123370

Thanks

I will make the appropriate changes and update you. Thanks for the quick response.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

paulp123370

still some issues

Made the changes to the form, saved the form as a template, and then started from scratch by importing it into a new php document.

"Significant Changes...." is still missing from the email

&

The fields in the "Legislative" section do not validate


Any help would be greatly appreciated.

Thanks.

Attached Files
paul_p_2_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

testing your files the Significant Changes section is written to the email without an issue.

The problem with the form elements in the Legislative is that they have the same name as form elements in the Regulation section.


all form elements must have unique names.

Sign in to reply to this post

paulp123370

geez

well hell, i clearly have not had enough coffee... i should have spotted that one..
thanks again for the ultra quick response! I'll make the changes and let you know once I have everything working.

Sign in to reply to this post

paulp123370

email issues

I'm still having email issues. The "Significant Changes" AND the Legislative section do not show up in the emails. I made sure label names were different as well and I started fresh again by importing the form template.

Validation works perfectly.

Suggestions?

Thanks.

Attached Files
paul_p_3_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/email/templates/block.php page, try changing:

php:
$removeEnds = array();

$removeEnds[] = "_x";
$removeEnds[] = "_y";



to:

php:
$removeEnds = array();

/*$removeEnds[] = "_x";
$removeEnds[] = "_y";*/
Sign in to reply to this post

paulp123370

significant

Significant Changes still doesnt show up in the email but the Legislative section shows up just fine in the email.. Weird...

Thanks for the help. Not sure why that first one is acting so strange....

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...