Im having a problem using SPServices.SPAutocomplete, that it removes double spaces from the sourceColumn that its referencing, I don’t know if anybody has come across this and if there is an easy work around.
Im using IE.
I am setting up a list to gather information about different projects staff are working on, It have two lookup fields from two different lists, projects, and project phases.
So the fields:
Project – that is a concatenated lookup field of the project number and title, ‘6666-0123-00 - Manor Park - Area D’. I uses the SPServices.SPAutocomplete. This allows staff to enter part of the name
or the project number and select the correct project, then select from the list.
Project phase, each project can have about 10 phases, these phase numbers are not generic but assigned to each project .
Im using SPCascadeDropdowns on this field.
My issue is that some of the project names have two spaces in them.
When I do an auto complete the second spaces are removed when text is entered into the input field.
So I have a project
000-1111-2222 – Parkland(Double Space)research project
Becomes after doing an auto complete:
000-1111-2222 – Parkland(Single Space)research project
So then SPCascadeDropdowns on the phase filed fails because the project name doesn’t exist.
I guess this is an issue with HTML and the way it deals with double spaces but is there an easy fix.
I guess I can process the data in my lookup lists to remove the double spaces.