Solved

manditory field script

Posted on 2008-10-16
3
257 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 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