Solved

manditory field script

Posted on 2008-10-16
3
254 Views
Last Modified: 2012-05-05
I need a script to that will check to see if the user has entered a value (including zero) in a field before the rest of the script will run. the problem is as this is a numerical field if the user leaves it black the computer recognises it as 0.
0
Comment
Question by:imounch
3 Comments
 
LVL 3

Accepted Solution

by:
D0N earned 500 total points
ID: 22737404
Use the function IsEmpty to determine if the field has nothing in it.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 22738314
it will recognize as 0 in calculations, but not is you test the content as above or <> "" (there is not equal sign on mac).
for a better understanding, it is better to test numeric fields as > 0 except if 0 is expected as relevant data.
if 0 is relevant, use getastext(field)<> ""; this way you're sure to test the text content of the field
0
 

Author Closing Comment

by:imounch
ID: 31506885
D0N, Thanks for your help, I didnt realise there is an IsEmpty function, This will come in really handy.

Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
New to FMP 6 126
Display results of a checkbox set 5 241
Filemaker Go to FMS - Low cellular signal 2 77
Filemaker pro 10 field content not appearing 7 49
Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now