REMOVE EXTRA WHITE SPACE AND BLANK DATE PLUGIN - Mar 7th, 2023


When using “if” statements to suppress titles and other information in a viewer if a field is empty, it’s easy for
client’s to leave blank spaces in an otherwise empty field and defeat the “if” test.

Now, thanks to a plugin (CMSB version 2.04 or above required) written by Dave Edis of Interactive Tools, it’s even
easier to guard against this by checking to see if the content is text and not just a space and automatically deleting
the space before saving the record so that they can’t interfere with any “if” tests. It works in both text and
WYSIWYG fields

The plugins won’t delete errant spaces in otherwise blank fields that already exist in your saved records, but you can
still check for them in each if statement used on your page.

UPDATED VERSION
The latest version of Dave Edis’ ExtraWhitespace plugin (CMSB version 2.05 or above required) adds the ability to
check for blank date fields to checking for white space in otherwise empty text fields, and eliminate the possibility of
returning a Jan 1, 1970 or similar date, if a blank date field is encountered. It is compatible with CMSB version 2.53
and above

You can download this version of the plugin from:

http://www.thecmsbcookbook.com/downloads/removeExtraWhitespace3.zip



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service