AJAX checking?

giorgio79 - July 14, 2009 - 06:05
Project:Unique field
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:Ajax, Usability
Description

Possibility to enable Ajax check for fields marked as unique?

Cheers,
G

#1

quam - September 20, 2009 - 15:05

I also have a need for this :

Field is unique
User enters content in the field on the add page
Module finds completed field is duplicate/not unique
Notification displays next to field that content is not unique

Ideally, we could define the notification message via Admin as the notification should be unique to the purpose of the field.

#2

paganwinter - September 19, 2009 - 14:01

Subscribing...

#3

thekayra - September 28, 2009 - 04:38

Very nice module, congratz..

Would be very nice if this would warn the users as described above but with the option of letting them continue.

#4

agaric - November 27, 2009 - 21:56
Status:active» needs work
Issue tags:+Ajax, +Usability

Robust AJAX checking of all the things in all the ways that Unique Field does was beyond my time right now (and in the forseeable future) but here is a custom module that piggybacks on Unique Field and steals most of its other code from username_checkUsername Check to check if the title already exists within a given node type.

Download Unique Field AJAX from our notes site.

It is dead simple to modify for use for other content types (edit the array that holds "effect" in our example) and pretty easy to apply to different fields. Agaric is interested in helping generalize it and seeing about better integration with Unique Field– our next need will be checking Link fields for existing links with AJAX, complicated by the possibility of these links being filled in already by prepopulate and a bookmarklet...)

benjamin, agaric

 
 

Drupal is a registered trademark of Dries Buytaert.