The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Javascript error when no fields are seachable - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Javascript error when no fields are seachable (/showthread.php?tid=2530) |
Javascript error when no fields are seachable - paullittrell - Jul 15th, 2013 I get a js error on page when I have no date fields search able on an internal form. The section I am having problems with is here: /** * Used to hide/show the additional date search options. With 2.1.0, any field can be a date field. We identify * them via a "date" class on the <option> element. * * @param string choice the selected column name */ ms.change_search_field = function(val) { if (val.match(/\|date$/)) { $("#search_dropdown_section").show(); } else { $("#search_dropdown_section").hide(); } } The problem is that the view I want setup does not have a search date field, so the page returns an error as follows: Message: 'undefined' is null or not an object Line: 428 Char: 3 Code: 0 URI: http://ca220k3fps02/clients/cox/Feedback_Tracker/live/global/scripts/manage_submissions.js Normally I wouldn't care, but this also breaks the export extention. |