LookupFieldWithPicker for 2013 !

Aug 11, 2014 at 7:33 AM
Edited Aug 11, 2014 at 8:39 AM
  1. Download source files
  2. Open iLoveSharePoint.Fields.LookupFieldWithPicker2010 project
  3. replace ALL : (adding /15/on everywhere )
    /_controltemplates/iLoveSharePoint.LookupFieldWithPicker/LookupFieldWithPickerEditor.ascx
    with
    /_controltemplates/15/iLoveSharePoint.LookupFieldWithPicker/LookupFieldWithPickerEditor.ascx
  4. add to LookupFieldWithPicker.cs
    //Point to a dummy js file.
    private const string JSLinkUrl = "/_layouts/15/NY.Autocomplete.LookupField/JS/dummy.js";
    public override string JSLink
    {
        get
        {
            if (SPContext.Current.FormContext.FormMode != SPControlMode.Invalid)
                return base.JSLink;
            else
                return JSLinkUrl;
        }
        set
        {
            base.JSLink = value;
        }
    }
    
  5. have fun ( if u "F5" and u dont't see it "Lookup with Picker" , do iisreset )
I used Visual Studio 2012