close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Element "Type: File" Problem

Thread begun 10/09/2009 4:45 pm by paputxi | Last modified 10/13/2009 5:13 pm by Jason Byrnes | 2327 views | 3 replies |

paputxi

Form Element "Type: File" Problem

I created a form using FB. One of the fields is to be an optional field for attaching a document. However, even though I unchecked the Required check-box (it is checked by default) when I selected this form element, it still shows the red asterisk next to the field label. After I uploaded the form to my website to test it, it won't let me submit the form until I do attached a file. Therefore, it acts like it is a required field. Additionally and not surprisingly, there is no validation error message displayed either if I haven't attached a file. FYI, the validation does work properly for the fields where I do want this capability. It's just the file type where I have a problem.

BTW, I encounter the same problem even when I start with an empty page and add just this file type form element to the form.

Any advice on how to correct this situation would be greatly appreciated. Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

Hmmm, seams to be a bug that it adds validation to all file fields, I will log this in our bugbase.

To remove the validation, in the server behaviors panel, double clik the Server Validation server behavior.

In the list of validations, select the required validation that is applied to the file field and click the minus button. Then click OK.

Sign in to reply to this post

paputxi

Thanks for the workaround, Jason. However, I encountered another problem as noted below:

To test out your recommendation, I created just a simple form using FB where I had just a few form elements including one file form element. As expected, FB was forcing validation on the file form element. I was not requiring validation on any of the other elements.

I then went into the server behavior panel per your instructions and deleted the validation rule associated with the file form element (using the minus sign). I then clicked the Ok button to close the dialog window but I immediately got the following error message: "You must specify at least one Server Variable to validate". My only other option, from what I could tell, was for me to click Cancel and I am therefore unable to delete the validation rule on the file form element.

However, if I do make at least one of the other form elements requiring validation, I then have two validations rules and I can delete the one associated with the file form element. But then again, I now have required validation on a different form element where I don't want it either.

Not sure this is another bug or not, but thought I would pass this information on to you.

In any case, you can mark my original issue as RESOLVED BY WORKAROUND, sort of. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Instead of removing the one validation from the Server Validations, you should remove the server validations server behavior in this case.


in the server behaviors list, select the server validation server behavior, then click the minus button to remove it.

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