close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Modify Contact Form

Thread began 9/08/2010 2:16 pm by robert222776 | Last modified 9/10/2010 7:09 am by Jason Byrnes | 1365 views | 9 replies |

robert222776

Modify Contact Form

I need to modify the contact us form in PowerStore3. Should I use CSS Form Builder or Contact Form Solution Pack? Not all fields will be required, but of course all the data needs to be sent via the form response email.

Thanks,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

Do you just need to add form fields?

If so, you wont need to use CSS form builder, or contact form solution pack.

place your cursor where the new form fields should be, then go to Insert -> Form and select the field type to add.

Sign in to reply to this post

robert222776

Thanks Jason. I added the form fields via code view. However, I must be missing something. I do no see any hidden (input) fields with this form such that I can specify which information is to be included in the email that is triggered upon submission. Where are they? All I get in the email is the form's original content as created by WA.

Thanks,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the page?


The email code has a loop that will look through each form field in the form and include it in the email.

I would suspect that the new form fields are either not inside the form tag, or they are named incorrectly using spaces in the name.

Sign in to reply to this post

robert222776

Hi Jason,

Attached is the file. Thanks!

Robert

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

Jason ByrnesWebAssist

form element names cannot contain hyphens

these names:

php:
<input name="contact-email" type="checkbox" class="textareaMinCharsState" value="1" >By email

                            <input type="checkbox" name="contact-phone" value="1" >By phone
                            <input type="checkbox" name="contact-fax"   value="1" >By fax
                            <input type="checkbox" name="contact-mail"  value="1" >By mail
                            <input type="checkbox" name="contact-none"  value="1" >No followup needed




are not valid.

Form Element Naming Rules:
1) Names may contain only numbers and letters
2) The only exception to rule 1 is the underscore
3) The first character of a form element name must be a letter.

examples:
"contact-phone" is not valid,
but "contact_phone" is

"1contact_phone" is not valid,
but "contact_phone1" is

Sign in to reply to this post

robert222776

Thanks Jason. That fixed the problem.

Question though....Is the form using any hidden fields, and if so, where are they?

Thanks,
Robert

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, there are two hidden fields, they are named "addblock" and "secondblock"

they are both being validated to make surer that they are empty, this is to prevent robots from filling in the form, a robot filling in the form, will add a value to all of the form elements, including hidden ones, if they add a value to the addblock and secondblock fields, the form will not be processed.

Sign in to reply to this post

robert222776

Thanks Jason!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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