Simple JavaScript Salesforce Validation - jSFValidation

Thursday, September 12, 2013 by Aslam - The Alexendra
Hi All,
Today I am going to give a demo for JS validation for VF pages which works mostly like native SFDC field validation. Here you can find the working demo.

http://labsprojects-developer-edition.ap1.force.com/jSFValidationDemo




Right now i have implemented the validation for "Required" type. If any text box values are empty , i am adding the error. You simply need to add the jSFValidation component and then you need to add the class "jSF_Required" on the fields you want to add validation for. In given demo, only "Mailing Country" is not required. Rest of the fields are marked for required.

You can download the code from here.
http://www.aslambari.com/downloads/jSFValidation.zip


Provide your suggestions to improve this :)

Thanks
Aslam Bari

18 comments:

Abdul Vahid said...

Nice :)

VIkas gaur said...

By using this we don't have to use standard error message.

Kirtesh said...

good one

urHelper said...

good one

visit this http://codebeautify.org/

Anonymous said...

you have done what i always thinking about, thanks!

Ganesh said...

I need code for this JSF validation..

springdale amritsar said...

thanks for sharing new things.this blog is very worthshile.education in amritsar

Jhonson Smith said...
This comment has been removed by the author.
Akash Gahukar said...

http://axegahukar.blogspot.in/2014/08/how-to-add-validation-using-javascript.html

KKARTHIK said...

nice

Facebook Descargar said...

Hello, just wanted to say, I loved this article. It was practical.
Keep on posting!
Signature:
download descargar facebook gratis para Android celular and download free descargar facebook apk and descargar facebook gratis , descarga facebook

Whatsapp Descargar said...

Its really good information, i like your blog post. Thanks for sharing
Signature:
download free descargar whatsapp and download baixar whatsapp online and descargar whatsapp gratis , baixar whatsapp gratis

Can Crusher said...

This is a really great blog post. thanks for sharing.

Anonymous said...

It appears zip file is not downloadable.

Padhma said...

this article was superb,but i expecting more information from this topic.but its useful
Back to original

TEK PC Solutions said...

Nice Post thanks for Sharing, Get instant technical help and support for printer, anti virus, email, desktop, laptop and more at 1-855-480-7873 toll free number.

Philips Huges said...


Thanks admin for sharing the unique content, you have done a great job

Installment loans in Mississippi
Payday loans in Mississippi
Title loans in Mississippi

Karthi Keyan said...

very very amazing explaintion....many things gather about yourself...yes realy i enjoy it
seo company in Chennai

Post a Comment