Ajax Lookup Signup Page

From SmartWiki
Revision as of 14:58, 15 May 2014 by Mark Bridger (talk | contribs)

Jump to: navigation, search

On a Hybrid signup page, you can have an Ajax Organization name lookup. To do that, make sure to have the following on the page and make sure "company name" is selected as the matching field on the organization sign-up page settings.


This lookup requires that you use the hard-coded hybrid signup page. The “dummyid” replaces the “cname” id input.


<div id="resultdiv" style="position:absolute;left:0;top:0;z-index:109;display:none;background:#FFFFFF" onClick="this.style.display='none'"></div>
 <input class='large' type=text id="cname" name="cname" value="" onBlur="setDynamicSearchValue(dynsearch_highlight_row);clearDynamicSearch(false);" 
 autocomplete="off" onKeyUp="dyn_companysearch(event,this.value,document.getElementById('resultdiv'),document.getElementById('lookupdiv'),this.form.dummyid,this,1,0,'xxxx',false,0,1)">
 </div>
  • where xxxx = the Category ID of the category of organizations you want to look up.
<input type=hidden name="dummyid" value="">
<SCRIPT type="text/javascript" language=JavaScript src="/dynamic_search.js"></SCRIPT>

See Also