Add validation before form submit

lelizondob - November 25, 2008 - 01:56
Project:Unique field
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:detour
Status:postponed
Description

Great module, but is it possible to add the validation 'before' the node is submitted?

An example of this could be that a user has to fill a very long form just to find out that it's a duplicate.. this way the user will know that the node is a duplicate after the unique fields are filled, not the full form.

Thanks

Luis

#1

ccmd00d - February 12, 2009 - 00:57
Version:5.x-1.x-dev» 6.x-1.0-beta2

Great module...

I also think this feature would be great for 6.x. Any plans to implement such a feature?

Thanks,

Derek

#2

detour - February 13, 2009 - 17:51
Version:6.x-1.0-beta2» 6.x-1.x-dev
Component:Miscellaneous» User interface
Assigned to:Anonymous» detour
Status:active» postponed

Hi Luis and Derek,

This is an interesting idea. I think it would be possible to add a JavaScript component to check the values of fields as they are entered by the user with the Drupal site to see if the values are duplicates. I'll look into developing this for a future version -- after a 1.0 release. I welcome any patches for this issue.

Thanks,
Joe

 
 

Drupal is a registered trademark of Dries Buytaert.