Hi Guys,
Simple question for all you advanced programmers. How do I stop "Null" being displayed as a result of the following javascript if the field is empty? If there is no value I want nothing to be displayed.
Thanks in advance!
web.rawValue + "abn=" + abn.rawValue + "&company_name=" + company_name.rawValue;
Alex V
+ ""
This will force a return of type string, zero length, instead of returning nothing which results in the 'null' value. A better alternative would be to prepopulate "company_name" with "" :
dim &company_name = "";Then check your input fields for a null value and only assign the value to the variable if the input field is not null.
Hope that helps!
DaveyB
LiveCycle Designer 8.0
"Genius is one percent inspiration, ninety-nine percent perspiration." ~~ Thomas Edison
"If at first you don't succeed, get a bigger hammer." ~~ Alan Lewis
"If the conventional doesn't work, try the unconventional" ~~ DaveyB