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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Appointment form ammendment

Thread began 9/06/2010 10:32 pm by sunsabbath76401977 | Last modified 9/09/2010 1:21 pm by Jason Byrnes | 1009 views | 4 replies |

sunsabbath76401977Beta Tester

Appointment form ammendment

Hi
How do I ammend the phone number text box in a contact from to validate a default 10 digit number to an 11 digit number?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to edit the the spry initialization line to use a custom phone format and pattern:


for example:
var Appointment_request_group_Phone_Spry = new Spry.Widget.ValidationTextField("Appointment_request_group_Phone_Spry", "phone_number", {format:"phone_custom", validateOn:["blur"], pattern:"00000000000"});


you would also need to edit the client validation to not reformat the phone number,

Give a link to your form, Iand I will be able to give more specific instructions.

Sign in to reply to this post

sunsabbath76401977Beta Tester

This post has been deleted.

Jason ByrnesWebAssist

change this line:

<input id="Contact_me_group_Phone" name="Contact_me_group_Phone" type="text" value="" class="formTextfield_Large" tabindex="1" onBlur="WAValidatePN(document.getElementById('SimpleContact_NewFromBlank_Default').Contact_me_group_Phone,'',false,true,'x (xxx) xxx-xxxx',document.getElementById('SimpleContact_NewFromBlank_Default').Contact_me_group_Phone,0,true);hideServerError('Contact_me_group_Phone_ServerError');">




to:

<input id="Contact_me_group_Phone" name="Contact_me_group_Phone" type="text" value="" class="formTextfield_Large" tabindex="1" onBlur="WAValidatePN(document.getElementById('SimpleContact_NewFromBlank_Default').Contact_me_group_Phone,'',false,true,'',document.getElementById('SimpleContact_NewFromBlank_Default').Contact_me_group_Phone,0,true);hideServerError('Contact_me_group_Phone_ServerError');">




and this line:

var Contact_me_group_Phone_Spry = new Spry.Widget.ValidationTextField("Contact_me_group_Phone_Spry", "phone_number", { format:'phone_us' , validateOn:["blur"]});



to:

var Contact_me_group_Phone_Spry = new Spry.Widget.ValidationTextField("Contact_me_group_Phone_Spry", "phone_number", { format:'phone_custom', pattern:"00000000000" , validateOn:["blur"]});
Sign in to reply to this post

sunsabbath76401977Beta Tester

This post has been deleted.

sunsabbath76401977Beta Tester

Hi Jason
Thank you the Contact_me_group_Phone runs fine, except a previous error runs, mentioned on parsing error post...
Sabby76

Sign in to reply to this post

Jason ByrnesWebAssist

see my reply in your other thread.

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