Preceding space in 0 index of multi-select values.
I think I found a bug that can break quite a bit of code for users.
1. Try saving a multi-select box with multiple values selected.
2. On validate run the following code..
fields = myMultiSelectBox;
for each f in fields
{
info "_"+f;
}
result......
_
home_phone
_
Location
_
Tour_Date
_
ID_str
or run this info in a list.
fields = web_contact_fields;
test = {};
for each f in fields
{
test.add("_"+f);
}
info test;
result.....
_how_did_you_hear_about_us, _
other_referral, _
doc_Name, _
pres_Location, _
parents_Name
if you run the test.add("_"+f) code with f.trim() it removes the front space.
I've even run this from a function query to see if the list values are corrected after update but they are not.
This effectively kills the list.contains("xxxx") function without first sanitizing each result. I don't think most users will know they need to do this. Please fix this