There is a validate written in the code for this but doesn’t seem to work.
if ( ($name != $form_state->getValue('orig_name')) && isset($settings[$name]) ) {
$form_state->setErrorByName('name', t('This name has already been used. Please try another.'));
}
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2857027-patch-testing.jpg | 28.81 KB | sastha |
| #3 | name_validation-2857027-3.patch | 701 bytes | wingpaler |
Comments
Comment #2
wingpaler commentedComment #3
wingpaler commentedName validation fixed. Added '$settings' variable loader.
Comment #4
sastha commentedComment #5
sastha commentedPatch works. Tested successfully.
Please refer screenshot.
Comment #7
baikho commented