close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Client side file field validation on Update form?

Thread began 3/26/2013 11:08 am by Andrew Read | Last modified 3/26/2013 11:31 am by Jason Byrnes | 540 views | 1 replies |

Andrew Read

Client side file field validation on Update form?

Me again... ;)

If you chose a File Field as a required element when setting up form validations it creates a client side SPRY validation as well as the server side validation. As per your suggestion in the Data Assist forum, I don't think that it will work. Should WADB be creating this, or is there a better way to deal with the file field being required on the setup of the form on my end?

To make matters worse if you click on the SPRY area to delete it you get an error message in DW "The structure of this widgit appears to be damaged. Go to Code view and repair the widget, or replace the widged" so deleting it won't be easy. :)

Sign in to reply to this post

Jason ByrnesWebAssist

It should not be adding the spry validation, i have logged a bug for this to be corrected in a future update,

you can easily remove the spry validation by editing the script near the bottom of the page. when you select the spry bounding box for the file filed, go to split view, and not the first span tag that is highlighted, for example:

<span id="ProductImage_Spry">
<span>
<input name="ProductImage" type="file" id="ProductImage" size="30" tabindex="8" onBlur="hideServerError('ProductImage_ServerError');">

the ID of the span tag for the file field is "ProductImage_Spry"

near the bottom of the page, is a script block to initialize the spry elements, the one for the file field uses the span tab ID:

var ProductImage_Spry = new Spry.Widget.ValidationTextField("ProductImage_Spry", "none", { isRequired:true , validateOn:["blur"]});

you can delete that one to delete the spry validation.

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