Page 1 of 1

How to prevent a lookup to run if a field is empty

Posted: Fri Aug 15, 2014 7:36 pm
by guscastro
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.

Re: How to prevent a lookup to run if a field is empty

Posted: Sun Aug 17, 2014 3:55 am
by admin
guscastro,

run the latest update , this should fix it.

Steven

Re: How to prevent a lookup to run if a field is empty

Posted: Sun Aug 17, 2014 9:20 pm
by guscastro
Steve
I couldn't update. I have received the followings errors while trying to update
Back up error: /home/content/77/824/html/such/unsuch/mas/tmp/2014-08-17T11_49_44-0700/nuupdatesch.php 
Back up error: /home/content/77/824/html/such/unsuch/tmp/2014-08-17T11_49_44-0700/nuupdatesch_lib.php 
The version running was downloaded on July 31st 2014.
Is there a way to see date or revision
Thank you

Re: How to prevent a lookup to run if a field is empty

Posted: Tue Aug 19, 2014 5:35 am
by shane