Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

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

Post Reply
guscastro
Posts: 10
Joined: Fri Aug 01, 2014 2:37 am

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

Unread post 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.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

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

Unread post by admin »

guscastro,

run the latest update , this should fix it.

Steven
guscastro
Posts: 10
Joined: Fri Aug 01, 2014 2:37 am

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

Unread post 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
Post Reply