Hello:
I have a SQL DB table with the following columns:
Unit - Data is either text, or NULL
House - Text field
Street - Text Field
PropertyID - Text Field
On the Form I have 4 fields:
Unit - sometimes blank when submitted
House - Required field
Street - required field
PropertyID - Looked up and Filled in when Unit, House and Street are filled in
The goal is to spit out he property ID on a field in the form when Unit House and Street are filled in.
The problem is the Unit field. Despite my efforts to create the right combination of Lookup Rules, I can only get a PropertyID if all 3 are filled in with a value. Leaving Unit blank when the form is filled in results in no PropertyID value being set on the 4th field.
I suspect that when the SQL server is polled by Laserfiche Forms and matched to what's filled in the form, it's not receiving the Unit value from the form as NULL, thus no matches are found.
How do I set up the lookup rules so that if Unit on the Form is blank, it does the lookup as a NULL value in the unit field? This should resolve the issue.
Thanks!
Herb Cruz