CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Profile Form client side (javascript) validation
Pages: [1]

Author Topic: Profile Form client side (javascript) validation  (Read 1209 times)

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Profile Form client side (javascript) validation
January 19, 2011, 01:51:34 pm
Hi,

Right now, if a profile form is deployed on a site that is outside of the civicrm installation, say

you have Civi installed on http://www.exampleA.com

and you have deployed a profile form to

http://www.exampleB.com

The form validation still takes place on http://www.exampleA.com, this is not ideal because

1) It takes the user away from http://www.exampleB.com which is where the form snippet is on which confuses user.
2) It creates inconsistent browsing experience especially if site A looks very much different from site B.


The suggestion I have would be simple javascript validation on the client side + the existing server side validation on the original site where CiviCRM resides. If that's the case most people who failed out some invalid information on the form will get some kind of alert via javascript but not be taken off the site.

The javascript could just be generated and placed in the form snippet.



Hope this makes sense,



Cheers!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Profile Form client side (javascript) validation

This forum was archived on 2017-11-26.