Forum Replies Created
-
AuthorPosts
-
It would have been a separate topic, but basically I was wanting to combine the autocomplete search but also prefill the search with a URL key value (if present). I ended up adding this to my custom JS. It fills the value into the search box and triggers “keyup” so the search suggestions show. In practice for us there’s only ever going to be 1 search result.
setTimeout(function(){ var theValue = GetUrlKeyValue("ClientVal"); if(theValue!=="") { document.getElementById("spjs_ac_Title").value = theValue; spjs.ac.hideHelp("Title"); $("#spjs_ac_Title").keyup(); } },2500);
- This reply was modified 4 years, 10 months ago by Shawn Keene.
Thanks so much for your answer and awesome detailed example. Really appreciate it.
PS. I have another pending post (probably because I attached a file), but I resolved it. Once it’s moderation-approved I’ll reply to it with the solution I used.
Thanks a ton!
Literally answered my own question the instant after I saved this post. The answer is /SPJS/LocalInstallPage.aspx
Thanks for the suggestions. I configured the rule but {currentUser:Email} autopouplates the list with an error that the Email field wasn’t found. Just {currentUser} seemed to work for most users, but I’m wondering what other fields are available beyond email?
-
AuthorPosts