close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I Make the Comments Field Optional?

Thread began 8/28/2009 2:04 pm by aames81381544 | Last modified 9/01/2009 2:22 pm by Jason Byrnes | 5932 views | 13 replies |

aames81381544

How do I Make the Comments Field Optional?

I created a form using the Form Solution Pack and it's working fine. But, I would like make the comments field optional for users. I don't want the "a value is required" message to pop up when they don't enter anything into the comments field. How do I do that?

Also, there seems to be a delay when I click on the link to the form on my website. Sometimes it only takes a second to go to the form page (probably because I've already visited it) and other times it seems like it takes 3-4 seconds for the page to show up. Why does it do that?

One more thing, I noticed that you guys came out with a new form creator extension for DreamWeaver. Do you think you will ever make a version for Expression Web?

Thanks,

Andre

Sign in to reply to this post

Jimmy Wu

If you click on the spry text area for the comments on the contactus.php page and go to the properties inspector, you can click to remove the check on required.

Do you have a link to your pages where the contact form is?

There are currently no plans for an Expression Web version of CSS Form Builder.

Sign in to reply to this post

aames81381544

I'm using Expression Web and I don't quite understand what you are asking me to do. Am I supposed to right click on this: "<span id="sprytextarea1">"? I don't see the properties inspector option when I right click on sprytextarea1. I do see tag properties. Here is a link to the site: www.AlmadenCrossing.com.

Thanks

Sign in to reply to this post

Jimmy Wu

Oh, sorry about that, I didn't put 2 and 2 together when you asked about Expression web. I was giving you instructions on how to do this with Dreamweaver.

We use Spry to validate the fields, but Expression Web doesn't recognize this. You can manually remove this line of code on the contactus.php page:
<span class="textareaRequiredMsg">A value is required.</span>

Make sure you leave the second closing span tag on that line.


Also you will need to modify this line of code:
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"]});

to look like this:
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"], isRequired:false});

Sign in to reply to this post

aames81381544

I did what you said and now I get the following message below the comments field: "Please let us know how we can assist you." And the form doesn't go through. It still requires an entry in the comments field.

Sign in to reply to this post

Jimmy Wu

My apologies, I had left out a step in modifying the page. You will also have to take out the code immediately following the span tag for the sprytextarea1:
<?php
if (ValidatedField("contact","contact")) {

...

<?php //WAFV_Conditional contact.php contact(3:)
}
}
}?>

Sign in to reply to this post

angelo388134

nope

This still does not remove the mandatory comment field! Why would comments be made mandatory anyway?

I'm working in Dreamweaver 8 and there is no property inspector button to unclick, neither does the fix above fix anything....

The form just keeps resetting, although without the red warning bar.

Any other suggestions?

Sign in to reply to this post

office172461

Originally Said By: angelo388134
  This still does not remove the mandatory comment field! Why would comments be made mandatory anyway?  



What do you do with a contact form if someone only sends you their name and email address? How do you know what they want?

It's a sensible default until you add more questions to the form.

Sign in to reply to this post

aames81381544

Hmm, it still doesn't work. I can't submit the form if I don't enter anything into the comments field.

Sign in to reply to this post

aames81381544

Do you think you could remove the code using dreamweaver and then paste the solution here on the boards?

Thanks

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