Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

AjaxUniqueTextField


Go to End


2 Posts   1183 Views

Avatar
SniperOmicron

Community Member, 1 Post

18 August 2014 at 7:57am

I am trying to figure out how the AjaxUniqueTextField work, the form class has the following ajaxuniquetextfield:

AjaxUniqueTextField::create('Username', 'Username*', "Username", "account", "", 16, "validate", "^[a-zA-Z0-9]+$^")

As far as I know it has the following parameter:

$name, 
$title, 
$restrictedField, 
$restrictedTable, 
$value = "", 
$maxLength = null, 
$validationURL = null, 
$restrictedRegex = null

If you have an example of a working version, would you mind sharing it?

Avatar
Kirk

Community Member, 67 Posts

18 August 2014 at 9:22am

Edited: 18/08/2014 9:23am

They have the following example on sspaste.com
http://sspaste.com/paste/show/5165743a4851b