How to prevent a lookup to run if a field is empty
Posted: Fri Aug 15, 2014 7:36 pm
Hello.
I want to stop a lookup if a field is empty.
This is what I've done so far
1. I added and onclick Event to the lookup bottom :
ONCLICK EVENT
nuSetHash('bob', 'world');
nuRunPHP( 'myphpcode', 'my_iframe_on_quotes');
'myphpcode' PHP code looks like:
if ( '#field1#' == '' ) { die() ; }
my_iframe_on_quotes is and Iframe on a form call quotes where the lookup is placed.
field1 is the field in the form I want to
I was expecting that die() php function would stop the execution of the look up, but it didn't
I would appreciate your help on this regards.
I want to stop a lookup if a field is empty.
This is what I've done so far
1. I added and onclick Event to the lookup bottom :
ONCLICK EVENT
nuSetHash('bob', 'world');
nuRunPHP( 'myphpcode', 'my_iframe_on_quotes');
'myphpcode' PHP code looks like:
if ( '#field1#' == '' ) { die() ; }
my_iframe_on_quotes is and Iframe on a form call quotes where the lookup is placed.
field1 is the field in the form I want to
I was expecting that die() php function would stop the execution of the look up, but it didn't
I would appreciate your help on this regards.