close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

existing form

Thread began 3/30/2011 7:13 am by turk361661 | Last modified 4/04/2011 9:01 am by Jason Byrnes | 2590 views | 7 replies |

turk361661

existing form

Hello,

I have an existing form that I used form builder to create a couple years ago. The name, email address, and comments field are all required fields.
Now I want to modify it so that all fields are required to be filled out.

How can I use form builder to make this type of update?
Or what areas of the code need to be modified to make this update.
Attached is my code.

Thanks,
Danielle

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

Jason ByrnesWebAssist

Simplest way to achieve this is to edit the Server Validations Server behavior and add required validation for the three additional fields.

Go to Window -> Server behaviors.

double click the Server validation server behavior.

From the validation type, select Required / not Blank / Selection made validation.

Click the lightning bolt next to server variable and select the Address form element, then click the plus button to add it to the list of validations.


repeat for the other elements that you wish to add, then click ok.

Sign in to reply to this post

turk361661

Jason,

Something still off. See attached code.
I only added the Address field as a required field. However the page is not working correctly.

My goal is to make everything users fill out on the form be:
1. Required / Validated
2. Have text display if they forget to fill out the field (Please provide your "ABC")
3. Have the information display on the form that gets emailed to my client.

Possibly I need to start over from the beginning for this type of request.
But I was hoping to just add the rest of the fields (Address, Business, etc.) and make them required similar to the Name, Email, and Comments.

Thanks for your help,
Danielle

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

Jason ByrnesWebAssist

i think the problem is that this was originally created with a different version of Form Builder.
First, delete this line from the page:
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>


then double click the Server Validation Server Behavior to add any additional validations.

Next, in the server behaviors panel, double click each of the validation show if behaviors, to reset them to the validation that trigger the error.

Add any additional validation show if behaviors you need to show other errors.

For each form element, rebind the initial value to the corresponding validated entries binding.

Sign in to reply to this post

turk361661

Jason,

I'm so close to having it figured out but still something is off.
I made the modifications. Form loads correctly.
But When I fill out all the fields, the page reloads and three fields are empty. Each have the red text requesting that I fill out the info.
The fields are the Business Name, Phone, and Fax.
I tried a couple different modifications but nothing seems to be working.
Can you take a look at the code and screen shot attached.

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

Jason ByrnesWebAssist

the tree problem form elements do not have valid names.

You cannot use spaces when naming form elements, they are not allowed in form element names.


form elements must conform to the following naming rules:
1) Only alpha numeric characters are allowed, the only exception is the underscore "_"
2) The first character in the name must be a letter

"Phone Number" is not a valid name, but "PhoneNumber" or "Phone_Number" would be acceptable.

Sign in to reply to this post

turk361661

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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