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.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
How to prevent a lookup to run if a field is empty
-
- Posts: 10
- Joined: Fri Aug 01, 2014 2:37 am
Re: How to prevent a lookup to run if a field is empty
guscastro,
run the latest update , this should fix it.
Steven
run the latest update , this should fix it.
Steven
-
- Posts: 10
- Joined: Fri Aug 01, 2014 2:37 am
Re: How to prevent a lookup to run if a field is empty
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
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
-
- Posts: 100
- Joined: Mon Jun 15, 2009 10:04 am