trouble with - if an empty field, then another field must be empty

IM in trouble with this code. What I do is take a time of entry by the user and adding 10 minutes and displays the new value in a second field. However if the input by the user field is empty, then the second field should also be empty.  Here is the code that I use and it is located in the area of personalised calculation of the second field (also tried in the part of the second field validation.)

var strStart = this.getField("Break2O").value;
strStart = strStart + " 1/1/70";


if(strStart.length)
{
var timeStart = util.scand("h:MM tt m/d/yy", strStart);
var oNext = timeStart
oNext.setMinutes(oNext.getMinutes()+ 10);
var oneHour = 60 * 60 * 1000;
var sNext = util.printd("h:MM tt", oNext);
event.value = sNext;
}
else {
//if (strStart = "");{
event.value = "0";
}
  //event.value = this.getField("Break2O").value;

any help is greatly appreciated. I have other custom calculation stuff to do with the same project (map of computing time) if anyone can help me out.

This line is incorrect:

If (this.getField("Break1O").value) = ""}

It should be:

If (this.getField("Break1O").value == "") {}

Tags: Acrobat

Similar Questions

  • How to draw a line (with the line segment tool) then draw another line, from those previous anchor point. When I try immediately draw another line on the other anchor lines it try to turn instead.

    I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.

    Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.

    Advice would be great because it's driving crazy me.

    See you soon,.
    Kyle

    Yes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.

  • Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. All ideas

    Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. Any ideas?

    Not sure that you need a different directory.

    If you are working on a local computer, create a new site with all the same settings for local files and change the remote server settings to match the second server.

    This ensures you that there is no difference between the two websites.

  • I'm having trouble with the serial number

    I'm having trouble with the serial number

    If you are hearing 3 or an earlier version, the activation server was arrested.  Take a look at this page, Download Adobe Acrobat 7 and Adobe Creative Suite 2 products for instructions on how to download another copy of AA3.01 and use a generic serial number.  (For the purpose of the present hearing 3 counts as CS2 even though he was not part of the Creative Suite then.)

    However, if you are using a later version of the hearing (CS5.5 until the current 2015 CC) while the others are right... you will need to contact customer support Adobe because only they have the serial number details.

  • Trouble with the Satellite Pro L300 Ethernet controller driver

    Hello

    I bought a Toshiba Satellite Pro L300 Model (PSLB9A - 064022)

    Put XP Pro/SP2-Having trouble with the Ethernet controller driver.

    I downloaded the driver from the appropriate list (Toshiba support) only network via another PC memory = car lappy

    Realtek_LAN_56861032008_XP.exe

    install
    installed in a folder named c:\ "DELL"-(WHICH can not be move?)
    drivers R86360
    OF this dossier, I do the "setup."

    broad com 440 x - installs as everything is good,
    made just TWO yellow controllers.in etha...
    \
    but isn't she suppose to be integrated realtek 10/100 Mbit / s Ethernet TX.

    Can someone please point me in the right direction.

    Thanks in advance...

    Steve

    Hello

    It seems that the Australian model, try this one:

    http://file.MyToshiba.com.au/file/Download/Resource/File/13002/Realtek_LAN_56861032008_XP.exe

  • Just set up a Win 2 K server 8 and trouble with FTP.

    FTP on windows 2008 server
     
    Just set up a Win 2K 8 Server and have trouble with FTP. FTP and IIS roles are installed and port 21 is open on the firewall but still can't connect. Any suggestion would be appreciated. Thank you

    Hello Spacekowboy

    If the suggestions of the Ing. Ladislav Cermak do not work then repost it please your question in the Windows Server forums from the link below. Thank you.

    http://social.technet.Microsoft.com/forums/en/winservergen/threads

  • Having a lot of trouble with updates.

    Having a lot of trouble with updates. Windows updates do not settle with error code 0 x 643. Fix from MS Computer Center said as he repaired software update. This does not resolve the issue. Fix MS datacenter failed with code 16977922-2147024894. Troubleshooting MS Wizard had had to close with an unexpected error code 0 x 80040154.  Norton updates fails with an error unexpected 0x000003E8. Update of Skype have also failed.

    Hello

    I suggest you to follow these steps and check if that helps:

    Method 1:
    If you have installed a security software on the computer, then I suggest you try to disable temporary and check to see if the same problem happens. Make sure that you enable security software back once the diagnosis is made to prevent the computer from virus attacks.

    Method 2:
    Try to perform the clean boot, and then check if it helps:
    http://support.Microsoft.com/kb/310353

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the above article.

  • Anyone who has other trouble with redcross haqve anti-virus software?

    original title: redcross anti virus

    Anyone who has other trouble with redcross haqve anti-virus software?

    Hello

    Red Cross Antivirus is a fake antivirus, a scam to force you to pay for it while he has no advantage at all.

    Red Cross Antivirus remove (uninstall Guide)<-- read="" this="">
    http://www.bleepingcomputer.com/virus-removal/remove-red-cross-antivirus

    It can be made repeatedly in Mode safe - F8 tap that you start, however you must also run them
    the Windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs. It comes
    a scan only, VERY EFFICIENT, if it finds something to come back here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses, Trojans,
    Rootkits, etc.) that has infected your computer despite all the security measures that you have taken (such as
    the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • I had trouble with my windows 7 Home premium, I downloaded again and ended up with 2 windows 7 hard disk, how can I delete one?

    I had trouble with my windows 7 Home premium, so I downloaded it again, now when I connect it has windows7 and windows Home premium, but the family version premium won't load, how to remove this version of my hard drive?

    Click Start, type: msconfig

    Press enter on your keyboard

    Go to the Startup tab

    Select the entry you want to delete

    Click on delete

    Then set the time to '0'

    Then click on apply and OK

    Restart if prompted.

    ------------------------------------------

    If the problem persists, try the following

    Click Start, right click on computer

    Click on properties

    Under control panel home

    Click on "advanced system settings".

    Go to the Advanced tab

    Under Startup and recovery, click settings

    In the default operating system list, select Windows 7

    Uncheck the "time to display list of operating systems".

    Click OK

    Then apply and OK

    ---------------

    If it still does not respond, try the following:

    EasyBCD by NeoSmart Technologies would be your answer, it provides a graphical front-end to the BCDEdit Command line that makes it easy for you to set the boot settings and change the entries start on the new Windows Boot Manager.

    http://NeoSmart.NET/DL.php?id=1

  • trouble with userinit.exe is an error like (0 x 0000000005) and I don't see anything on the screen, it's all black what should I do?

    IM have trouble with userinit.exe, there a like (0 x 0000000005) of the error, and I don't see anything in the screen is all black, what I have to do?

    I would also like to run a file system check to verify and repair the operating system files

    Run a file system check to check and repair your system files.

    To do what type cmd in start search box, and then right-click to run as administrator, then
    SFC/SCANNOW

    It may need be performed up to three times before success
    Let us know the results of the report at the end

    Read here for more information
    http://support.Microsoft.com/kb/929833

  • trouble with the signature in my typekit

    My kit to type always im disconnected and when I try to sign says I can't sync all fonts that it says im signed in one second and then the screen will start to Flash and im out again how can I solve this

    I'm sorry that you trouble with that. Looks like there may be a conflict with one of the cookie settings in your browser. The Web of Typekit site uses cookies on Adobe.com and the connection will not work if you have blocked in the browser of third party cookies.

    If it is enabled in your browser, you will need to add exceptions to the privacy setting:

    http://help.Typekit.com/customer/portal/articles/760702

    If please give that a try and let me know if you still cannot sign in to your account.

  • Impossible to update the full name with post-process Manager field

    Hello

    I have a manager post-process that updates some fields when a user is changed. The post-process Manager update correctly the e-mail, and common name fields. However, for some unknown reason, I am unable to update the display name. There is no error message, but the value is not updated.

    Here is the code I use to update the display name:

    EntityManager entityManager = Platform.getService (EntityManager.class);

    HashMap < String, Object > uploading = new HashMap < String, Object > ();

    attrs.put (UserManagerConstants.AttributeName.DisplayName.GetId (), 'New value');

    entityManager.modifyEntity (orchestration.getTarget () .getType (), userEntityId, uploading);

    There also seems to be something different with the full name field. When I print all the fields and values for a particular user, I get something like:

    First name = John

    Family name = Doe

    Email = [email protected]

    [...]

    However, the display name has the following format:

    Display name = {base = John Doe}

    I also tried to set a new value in the format "{base = new value}", but it does not work either.

    Am I missing something?

    Thank you

    -jtellier

    Display name must be placed in a Hashtable as follows:

    Map dispNameMap = new HashMap();
    dispNameMap.put ("base", lastName + "" + firstName); then pass this card as:

    Parameters.put ("Display Name", dispNameMap);

  • Im having trouble with my iphone 16 GB ios 9.3.3 5s (G 13, 34) receive error code 22 tries to connect to the server, and nowhere suggestions?

    Im having trouble with my iphone 16 GB ios 9.3.3 5s (G 13, 34) receive error code 22 tries to connect to the server, and nowhere suggestions? I have tried almost everything turn power switch wifi in the middle and doing it to try to track down the problem in the Device Manager and im completely disgusted

    Have you tried turning off and back on again?

  • VZW iPhone is unlocked? Means it can be used with a SIM card, anywhere in the world with any other SIM card from another provider, including the United States

    VZW iPhone is unlocked?

    Means it can be used anywhere in the world with any other SIM card from another provider, including in the USA?

    Yes, only bought it for full price directly from Apple.

    Buy from anywhere else or under contract with Verizon means that he will probably be locked.

  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data

Maybe you are looking for

  • Confusion with the removal of the pictures

    I want to remove photos from my iPad, but once I did, they are removed from my iMac. How do I just delete a device please.

  • How can I resize (shrink) the address bar?

    Hello Please see this screenshot of my navigation bar: http://i.imgur.com/SfD5rKP.png I should have plenty of room for the buttons, but one is cut and separated in a submenu. I don't even think that logic given that one button is replaced by the menu

  • Paper Type/quality option disappeared

    I started to install the printer roommates, but install did not work and I returned to my current Deskjet 950 running on OSX 10.5.8.  But NOW the paper Type/quality option disappeared.  Latest drivers downloaded, no help.  Unable to print in the draf

  • HP pavilion g6 adobe installation problem

    I had a problem: (just vista)When I run the installer for Adobe Reader 8, I get this: screenshot I'm really happy if you guys can help me understand this. Coz I love my laptop HP... Thank you

  • Uninstall the old video card driver

    PC: HP Pavilion 6520f desktop computer new video card: AMD Radeon 6570 I tried to replace my old Integrated GPU (AMD 4200) so that I could get a better game experience, but whenever I try to uninstall the old driver, the computer will not start up wi