The autocompleteFromQuery works well however it adds a semicolon at the end. Any

The autocompleteFromQuery works well however it adds a semicolon at the end. Anyway to configure to avoid the trailing semicolon without the rule / expression based way of doing away with the semicolon....

OriginalPostID-67798

OriginalPostID-67798

  Discussion posts and replies are publicly visible

Parents
  • It puts a semicolon because you are passing "true" in the "allows multiple" input of the function and/or because your field has the "Allow multiple values" checkbox enabled in the forms designer.

    The definition of the function is:

    FormAPI.attachAutocompleteFromQuery = function(fieldId, datasource, query,
    id_attr, display_attr, multiple)

    as you can see the last parameter is a boolean to indicate whether your auto-complete field will accept multiple values in which case they will be semicolon separated.
Reply
  • It puts a semicolon because you are passing "true" in the "allows multiple" input of the function and/or because your field has the "Allow multiple values" checkbox enabled in the forms designer.

    The definition of the function is:

    FormAPI.attachAutocompleteFromQuery = function(fieldId, datasource, query,
    id_attr, display_attr, multiple)

    as you can see the last parameter is a boolean to indicate whether your auto-complete field will accept multiple values in which case they will be semicolon separated.
Children
No Data