I have two fields and I would like the 2nd field to display the word "Error" if the number is smalle

I have two fields and I would like the 2nd field to display the word "Error" if the number is smaller than the number in field 1.
can any one help?

The code for the field? Sure, it's simple.
You can use something like this as its custom calculation code:
var v1 = this.getField("Field 1").valueAsString;
var v2 = this.getField("Field 2").valueAsString;
if (v1 && v2 && Number(v2)<Number(v1)) event.value = "Error";
else event.value = "";
Edit: Fixed code

Similar Messages

  • I have two homes and I would like to keep my iPad2 in sync with my desktops in each home. How do I do that?

    I have two homes in two different staes and I spend time between the two. I would like to keep my iPad2 in sync with my desktops (PCs) in each of the homes as I travel between the two. When I try to sync with the second PC ( with my iTunes ID) it threatens to wipe out my iPad2. I just want to keep the two desktops and my iPad in sync. Please help.

    Put a copy of the most current iTunes Media library onto a USB hard drive. Replace the older library with the newer one. Repeat the process when you return to the other home.
    Or you can sync everything to iCloud where it is accessible anywhere you can connect via your Apple ID.
    iCloud Related:
    MobileMe: About moving to iCloud
    iCloud: Features that work with one account at a time on iOS 5 and OS X
    iCloud: How to back up iCloud data
    iCloud: Backup and restore overview
    iCloud: About storage buffering
    Using and troubleshooting Back to My Mac with your iCloud account on OS X Lion
    iCloud: Troubleshooting Find My Friends
    iCloud: Calendar Events, Reminders, To Dos, and Tasks behavior differs by application
    iCloud: Distinguishing between Calendars and Reminders
    iCloud: Troubleshooting iCloud Reminders and Tasks
    iCloud: Manually importing data from iCal to iCloud Calendar
    iCloud: Understanding where iCloud Calendars are displayed in iCal
    iCloud: Reminders are called Tasks in Microsoft Outlook on Windows
    iCloud: About the iCloud Web App Plugin for Internet Explorer
    iCloud: Troubleshooting web browser issues with icloud.com
    iCloud: Troubleshooting iCloud Bookmarks
    iCloud: How spam is filtered
    iCloud: Why was I spammed?
    iCloud: Keeping the Junk folder consistent between webmail and OS X Mail
    iCloud: How to get long email headers for iCloud accounts
    iCloud: About email aliases

  • I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?, I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?

    In Final Cut Express I have two videos I'd like to merge parts of each video into a final film.  What is the best way to do this in FCE?

    Hi
    I use a slightly different way than Alchroma.
    Same
    • One video on track 1 and the other on Video.track 2
    • Resize to 25% and move one to the left and the other to the right
    Diff
    • I don't use the blade tool
    • I use the Pen tool and change the transparency - then I get fast or slow transitions in same stroke and easy to fine-tune later if needed. (But this can be done with the Roll-tool if Blade is used - so it might be as easy)
    Final
    • Resize to 100% and Center
    Video is done
    Audio - very close to this by changing the level so that best audio will dominate
    • Pen tool here too
    But that's me - the Alchroma way is as good as this or may be better for some
    Yours Bengt W

  • I have two accounts and I would like to merge them info one

    Hello!
    I have a personal account and one for the company I run. I'm trying to keep them separate but share the portfolio pieces is that possible ?
    I tried the team page but it doesn't seem to work properly.
    Please advise.

    I suppose you mean, you want to merge both the Behance accounts for sharing the portfolios.
    If so, similar query has been answered here. Two adobe accounts, can I merge them?
    ~ Arpit

  • I am trying to make a fraction in a form field and I would like it to have an over/under appearance. Is this possible?

    I am trying to make a fraction in a form field and I would like it to have an over/under appearance. Is this possible?

    What system and iPhoto version are you running?  What theme are you using.
    All of my calendars do have the month starting on Sunday,  Don't know of any way to change it.  Where are you located?
    How do you have your Calendar application's preferences set to, Sunday or Monday start of week? 

  • HT204380 I have 2 iPads, and I would like to use FaceTime between this two iPads what should I do?

    I have 2 iPads, and I would like to use FaceTime between this two iPads what should I do?

    Yes use different email each iPad
    on "you can be reached for video calls at" in Facetime setting on General Setting
    If you have different apple id will be best

  • My playlists on my computer have been deleted and I would like to restore them from my IPod. How can I copy from my ipod to my computer?

    My playlists on my computer have been deleted and I would like to restore them from my I Pod. How can I copy my music from my iPod to my computer?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • I have IPAD 1 and I would like to sharing the screen to monitor TV (video,photo,app). What are the options?

    I have IPAD 1 and I would like to sharing the screen to monitor TV (video,photo,app). What are the options?

    Unfortunately you do not have any options, the iPad one cannot be used for mirroring.

  • HT2305 I have a pc and I would like to download the program and icon which allows me to download apple software for my pc?

    I have a PC and I would like to know how does one obtain the icon and the program to keep my apple software up to date?  Thank you.

    Click here and install the software.
    (70878)

  • I have two mac's i would like to move a tv rental to the other mac how can i do this

    I have two mac's i would like to move a tv rental to the other mac how can i do this

    iTunes Store: Movie rental frequently asked questions

  • My iPhone 4s and mini iPad have been stolen and i would like to block them

    my iPhone 4s and mini iPad have been stolen and i would like to block them

    Do you have Find My iPhone turned on in iCloud on them? If so:
    Find My iPhone Basics - Apple Support
    Click on the "Lock and Track your iPhone remotely" thumbnail, or on the "Erase your phone remotely" thumbnail for instructions. You can also find all of the information about using Find My iPhone by clicking on the thumbnails from left to right.
    You should also follow the steps in this article:
    What to do if your iOS device is lost or stolen
    Best of luck,
    GB

  • HT201272 I purchased a business app in the store and I would like to reinstall it to my Ipad. I see the app icon, but when I click on the icon, I am asked to authorize the computer. After I authorized the computer, I am still unable to reinstall the app.

    I purchased a business app in the store and I would like to reinstall it to my Ipad. I see the app icon, but when I click on the icon, I am asked to authorize the computer. After I authorized the computer, I am still unable to reinstall the app. ty

    Jimmy RG
    In the Elements Organizer 13
    The key to all this is to click on/select/highlight the Album that you have created in Local Albums.
    Then make sure that the Sort By: (in the row below the highlighted "Media" header is set for Album Order.
    You should see a number at the top left of each of thumbnails.
    Then, click on the thumbnail that you want to move, hold down the click, and drag the thumbnail to the wanted new location
    in the line up of thumbnails.
    Often I had to press down hard on the drag.
    Please let us know if that worked for you.
    Also, in Edit Menu/Preferences/Keyword Tags and Albums/Enable Manual Sorting Options, I set all for manual.
    ATR

  • Hi. We have two iphones and one Itunes account. How do back up each one without getting the others contacts

    Hi. We have two iphones and one Itunes account. How do back up each one without getting the others contacts and without syncing each phone to each other?

    Welcome to the Apple community.
    Ideally you should each have your own iCloud account, providing you with your own contacts, calendars etc, not doing so will result in exactly what you have experienced. The contacts have likely been lost due to the options you have chosen at the login stage on each device.
    Unless you have the missing contacts in a backup file, they won't be recoverable unfortunately. You can add them manually to the contracts that already exist and continue to share the iCloud account if you wish, but I suggest that you each have your own iCloud account.
    Note, you can each have your own iCloud account, but continue to share an iTunes account for purchases of apps, books, music, TV shows etc etc.

  • I have two LED monitors i would like to connect to my Mac Mini.

    I have two LG LED monitors and i would like to run dual monitors on my mac mini. Im running into a problem because i cant find a way to utilize the HDMI port on the back of the mini. For my one working monitor i use the thunderbolt display and convert that to vga. Is there any way to run dual VGA monitors?? i have seen some HDMI to VGA cables online but im not sure if they work due to their negative reviews.

    It would be better to use the DVI (digital) connections instead of the VGA (analog) ones.
    Then you could use the supplied HDMI to DVI adapter and a DVI cable for one monitor and then Apple's Mini DisplayPort to DVI adapter for the other. > Mini DisplayPort to DVI Adapter - Apple Store (U.S.)

  • HT1277 okey my name is Georgina Outerbridge and i have an ipod 160GB and i would like to download some songs but a can not do the cuz i have a 97 on my bill and i would like to get it off so i can download some songs Q21490AN9ZU - 317547033

    Hi my name is Georgina Outerbridge and i have an ipod classic 160GB and i would like to download
    some songs - but i can not do that cuz i have a 97 on my bill that i need to say bye bye  to - take away
    the 97 so i can download some songs please.  Q21490AN9ZU - 317547033 AND I CALL 3 TIMES.
    THANK YOU GOD BLESS

    If you are having problems with billing, you'll probably want to contact Apple Support.
    http://www.apple.com/contact/
    B-rock

Maybe you are looking for

  • How to enter multiple TAX codes in MIRO

    Dear Experts, I have a scenerio, I created a purchase order with single line item. But I recieve the Invoice with 3 different tax codes for different amounts. How can I enter multiple Tax codes in MIRO for a single purchase order. Regards SK

  • Error while restoring an Appset using TCODE:UJBR

    Hi, I am trying to restore an Appset (which I took backup)using TCODE:UJBR. But evry time it throws me an error: Error Occured while creating Application RATE via admin API. Please suggest how to approach. Thanks

  • Is it possible to curve text into an arc, similar to using MS wordArt?  Thanks!

    Hello - can anyone tell me if it is possible to curve words/text into an arc in Pages, similar to doing it in MS WordArt?  I'd like to curve words around an image, sort of like creating a logo.  Any ideas are appreciated.

  • Watching a video from iphone on TV

    I cant figure out how to watch a video on my TV, i have all the cables connected correctly and i have tried both NTCS and PAL and it still doesnt work, all i get is audio, please help

  • FTP Problem. Can anyone help?

    SO I am an IT professional and I know FTP inside out. But not well enough for Apple. Am I being stupid? Whatever I do, I cannot publish my sites. I can either FTP to /var/www/html/[sitename] or to /home/michael/[symbolic link to sitename]. Neither wo