close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Spry Validation - (maxChars)

Thread began 5/02/2014 10:40 am by FrankJay | Last modified 5/05/2014 4:08 pm by Jason Byrnes | 625 views | 7 replies |

FrankJay

Spry Validation - (maxChars)

Prior to now using jQuery validation when building DataAssist Pages, I was able to enter the maximum characters for an input field.

Once the pages were generated, I could edit the maximum amount characters near the bottom of the page (Spry.Widget.ValidationTextField).

How can I edit these maxChars values using DataBridge 1.1.9?

Sign in to reply to this post

Jason ByrnesWebAssist

to edit the Jquery validation settings on your page, go to WebAssist -> Forms -> Jquery validation.


The max chars settings is probably a server validation though.

to edit the server validation settings, go to the server behaviors panel, and double click the server validation server behavior to edit.

Sign in to reply to this post

FrankJay

Nothing listed

Thanks Jason,

I don't see any of the settings you mention. See attached screenshots.

Please advise.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page so i can see the code.

Sign in to reply to this post

FrankJay

Page is attached

Hi Jason,

The page requested is attached in the original attachment.

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see any server validation applied top this page, nor do i see a jquery pattern on the header for element to restrict the number of changacters:

<input id="contentHeader" name="contentHeader" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("riContentPagesinsert","contentHeader"):"")); ?>" class="formTextfield_XLarge" tabindex="2" title="Please enter a value.">


It looks like the length validation has been removed from this page.


If you select the content header form element, in the property inspector will be a max length setting. you c an use that to set the maximum number of characters to be entered.

Sign in to reply to this post

FrankJay

Extra clarity needed

I'm not sure why the length validation has been removed from this page.

When I create the pages using the DataAssist: create pages under the manage pages tab, form validation and field settings, I have entered a value for Max Characters: 125. On completion of the page generation, I do not see any code reflecting the set Max Characters. Am I doing something wrong or is this perhaps a bug? See attached screenshot of my form validation and field settings.

From your previous advice, I do now see how I can set the max length setting for the input fields. The problem is for a textarea field in the properties Inspector does not allow me to enter a max length.

From what I see now, is that I would need to manually set the max length for each input field of the generated pages.

How would I apply any server validation to the page?

How would I apply the jQuery pattern for an element to restrict the number of characters?

Appreciate your clarity on this matter Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

Jquery cannot restrict character length.

use server validations for this.

In server validations use the Entry Length validation type,

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