I want to make Text1 required if Text2 is left blank and vise versa

Hi all!,
I'm trying to get the javascript to make two text fields required before a form is submitted. Essentially they have to fill in text in either Text1 or text2. If they leave them both blank, the form cannot be submitted. Any thoughts?
Thanks

You can use this as the script for the Submit button:
var f= this.getField("Text1")
var g= this.getField("Text2")
if ((f.value =="") && (g.value ==""))
app.alert("You must fill in at least 1 field");
If both fields are blank, an alert message appears when the user tries to submit the form.

Similar Messages

  • I want my Mac book to synchronise with my Mac mini, and visa versa, so that I can work on either computer knowing that everything i do will be accessible from either computer - do i need to buy os x server to do this or is there a different way?

    I want to know that if I create a document on my macbook it will be available on my mac mini and visa versa, is there an easy way of making two computers synchronise.
    Currently my older mac book contains loads of old documents that I transferred to my mac mini via the apple migration software when I bought my mac mini but unless I always create documents on my mac mini I start to work between computers that makes it very confusing and difficult to manage.
    Thanks

    Turn on file sharing. If they are both on your wifi network you can share via wifi. Or set up an ethernet connection between the two machines.
    Mac Basics: File Sharing - Apple Support
    Hope this helps.
    PJRS

  • I need to download all of my photos from my iPhone 4S and my iPad 2 to my MacBook Air. I want to make sure all my photos are not lost and that they do not return to the original devices because of the cloud. Can someone please help ?

    I need to download all of my photos from my iPhone 4S and my iPad 2 to my MacBook Air because there is no more storage space available. I want to make sure all my photos are not lost and that they do not return to the original devices because of the cloud. Can someone please help ?

    Connect your devices to the computer with the USB cable (one device at a time) and import the photos via iPhoto or Image Capture.
    If you have not changed any default settings on your computer, iPhoto will automatically launch when you plug in the device. Then follow the import prompts.

  • I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad

    I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad....
    Please Help me.
    I want to make a numpad of my own from which i can set the text but i want the user to tap in between the text..

    You seem to stop the while loop to run the following code, then the program ends. Are you running this using the "continuous run" button????
    You need one big while loop containing the acquisition, then you build up the history data in a shift register. Clicking "save" will save the data, but not stop the loop.
    Why did you place a time-control in the FOR loop??? This is just post-processing so it should just do it without any delays. I don't understand the logic in the FOR loop. You are appending arrays, but then you delete the first element at each iteraction constantly trimming data from the beginning of the appended array. Then you autoindex at the output tunnel heavily duplicating all data. Ths make s no sense!
    Can you explain how you want you data saved?
    Message Edited by altenbach on 12-16-2005 11:20 AM
    LabVIEW Champion . Do more with less code and in less time .

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. 1st gen iPad.

    A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. The message is now fixed & I cannot get rid of it. Ironically, when I found this forum I was able to set up an apple Id. Please advise how to get rid of the pop-up box. Thanks!

    I'm having this same problem as well and cannot advance--very irritating. All of the information is filled out correctly and I've editted my AppleID information online separately as well to get around this issue, but no luck...

  • I do not have master card,visa card to make my apple ID,tell me how can I make my apple ID with out master card and visa card

    I do not have master card,visa card to make my apple ID,tell me how can I make my apple ID with out master card and visa card

    It will if you follow, exactly, the instructions on the page that lllaass included in the post above yours : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method

  • F-02 T.CODE TEXT FEILD MAKE IT REQUIRED ENTRY FIELD NOT FOR OBC4 AND OB41

    my end users want to when ever post a document through F-02 t code text feild make it required entry feild, how to configure
    pl halp me
    Moderator: Please, don't post in CAPITAL letters and search before posting

    Hi,
    Change the field status group for that GL account and make text field as required.
    Use T-Code OBC4
    Thanks
    Andy

  • I want to make my background appear in the same spot and size on every monitor size

    Hello,
    I am adding a background to my site, and on my monitor it appears in the right dimentions. However, when I zoom out or in on my monitor the background changes sizes. How do I keep it in one position and the same size the entire time despite the monitor size? Here is my code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    @import url("footer.css");
    html {
    background-color: #000000;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #000;
    background-image: url(Background.jpg);
    .footer p a {
    color: #CCC;
    body {
    width: 1041px;
    margin: auto; /* keeps the page centered */
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 0px;
    background-repeat: no-repeat;
    background-color: #000;
    background-attachment: fixed;
    a {
    color: #8A0404;
    text-decoration: none;
    a:hover {
    color: #FFFFFF;
    .header {
    height: 150px;
    background-image: url(headernew.png);
    width: auto;
    float: none;
    background-color: #000;
    background-repeat: no-repeat;
    padding-top: 0px;
    clip: rect(auto,auto,auto,auto);
    .header .nav {
    width: 450px;
    float: right;
    margin-top: 55px;
    text-align: right;
    .header .nav span {
    font-size: 12px;
    font-weight: bold;
    color: #8a0404;
    margin-left: 25px;
    .navbar {
    background: #FFFFFF;
    line-height: 35px;
    margin: auto;
    width: 170px;
    float: right;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    bottom: 120px;
    position: relative;
    height: 55px;
    right: 55px;
    .navbar .nav {
    width: 50%;
    float: left;
    .content {
    background: #FFFFFF;
    .aside {
    width: 330px;
    float: right;
    color: #8a0404;
    padding-top: 10px;
    background-color: #000000;
    .section.main {
    background: #FFFFFF;
    width: 700px;
    float: left;
    bottom: 0px;
    padding-bottom: 15px;
    .article {
    min-height: 400px;
    text-align: justify;
    background-color: #FFFFFF;
    background-repeat: repeat-y;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    .centertxt {
    text-align: center;
    .righttxt {
    text-align: right;
    padding-right: 15px;
    img.center {
    display: block;
    margin: auto;
    .section.main .article h3 {
    text-align: center;
    font-style: italic;
    color: #97222B;
    font-size: 30px;
    .footer {
    font-size: 11px;
    text-align: center;
    width: 100%;
    background-color: #000;
    border-top-width: 5px;
    border-top-style: solid;
    border-top-color: #000;
    border-right-color: #000;
    border-bottom-color: #000;
    border-left-color: #000;
    position: relative;
    left: 0px;
    bottom: 0px;
    clear: both;
    color: #CCC;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    margin-right: auto;
    margin-left: auto;
    .signature {
    position: relative;
    </style>
    <link rel="stylesheet" href="dakevid_videolb/overlay-minimal.css"/>
    <link rel="stylesheet" type="text/css" href="banner_files/banner-rotator.css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <link href="footer.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
    <script type="text/javascript" src="banner_files/jquery.banner-rotator.min.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
    $("#JQBannerRotator2").fdBannerRotator({keyboardEnabled:true,frameShadowEnabled:true,slide Width:700,slideHeight:300,slideScaleMode:"none",slideTransition:{type:"fade",duration:300, easing:"easeOutQuad"},slideDuration:3000,slideAutoplay:true,slidePauseOnHover:true,timerPo sition:"top",timerVisible:false,captionAnimationSpeed:500,captionAnimationEasing:"easeOutQ uad",controlDirectionEnbled:true,controlDirectionHide:true,controlPlayEnabled:true,navigat ionEnabled:true,navigationPositionTop:240,navigationPositionMargin:10,navigationAlign:"rig ht",navigationThumbEnabled:true,navigationThumbServerScipt:"",navigationThumbSearch:".jpg" ,navigationThumbReplace:"_thumb.jpg",navigationThumbWidth:150,navigationThumbHeight:65,nav igationThumbAnimationSpeed:200,navigationThumbAnimationEasing:"easeOutQuad"});
    </script>
    <body marginwidth="auto" marginheight="auto">
    <div class="header"></div>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="index.html">Home</a></li>
    <li><a href="about.html">About</a></li>
    <li><a href="news.html">News</a></li>
    <li><a href="http://www.xcelonlinestore.com/collections/kyle-dake-official-merchandise" target="_new">Merchandise</a></li>
    <li><a href="#" class="MenuBarItemSubmenu">Media</a>
    <ul>
    <li><a href="video_gallery.html">Videos</a></li>
    <li><a href="photo_gallery.html">Photos</a></li>
    </ul>
    </li>
    <li><a href="events.html">Events</a></li>
    <li><a href="sponsors.html">Sponsors</a></li>
    <li><a href="representation.html">Representation</a></li>
    <li><a href="contact.php">Contact</a></li>
    </ul>
    <div class="navbar"><iframe src="http://free.timeanddate.com/countdown/i3zg3ync/n35/cf12/cm0/cu3/ct0/cs0/ca0/cr0/ss0/cacfff /cpc000/pc000/tcfff/fs90/szw320/szh135/tatCountdown%20To/tacfff/tptTime%20since%20Event%20 started%20in/tpc000/matThe%20World%20Championships/macfff/mpc000/iso2014-08-26T00:00:00/pa 5" frameborder="0" width="214" height="75"></iframe>
    </div>
    <div class="content">
    <div class="section main">
    <div id="JQBannerRotator2" class="JQBannerRotator">
    <div class="overlay"></div>
    <ul class="data">
    <li><img class="slide" src="banner_files/slides/lansing.jpg" alt=""/></li>
    <li><img class="slide" src="banner_files/slides/eiwa.jpg" alt=""/></li>
    <li><img class="slide" src="banner_files/slides/coaching.jpg" alt=""/></li>
    </ul>
    </div>
    <div class="article">
    <h3>Welcome to KyleDake.com</h3>
    <p><img src="test.png" width="323" height="441" hspace="20" align="left">Hey Guys! Thanks for visiting my website. I hope you find what you are   looking for, whether it be clothes and merchandise, information, or   inspiration! I want to thank you for supporting me and my dreams as I am   chasing them down every day. The fans are one of the most important   parts of what I do, I hope everything I have done and will do benefits   someone somewhere. Make sure you are chasing your dreams every second   you breathe.<span class="signature"><img src="Signature2.png" width="203" height="109" align="right"></span></p>
    <p> </p>
    </div>
      </div>
    <div class="aside">Follow Kyle on Twitter | Check out Kyle's Facebook Page</div>
      <div class="aside">
    <p class="righttxt"> </p>
    <p class="righttxt"><a class="twitter-timeline"  href="https://twitter.com/kyledake444"  data-widget-id="423108832919695363">Tweets by @kyledake444</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getE lementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.j s";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
    </p>
      </div>
    </div>
    <div id="footer">
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    <div class="footer">
      <p>All Rights Reserved 2013 X-Cel Worldwide | © Kyle Dake 2013 | This is the official Kyle Dake Website | Web Design <a href="http://www.riccioproductions.com/" target="_new">Riccio Poductions</a> | </p>
    <a href="http://www.cfathletic.com/" target="_new"><img src="cf.png" width="83" height="40" border="0"></a><a href="http://www.milwaukeetool.com/" target="_new"><img src="mil_tools.png" width="81" height="55" border="0"></a><a href="http://www.ai-sport.com/ai-performance/ai-performance-wrestling" target="_new"><img src="ai_wrestling.png" width="228" height="47" border="0"></a></div>
    </body>
    </html>
    Thanks!!

    It works in everything except IE, which it notes so I knew that going in. Any thoughts on how to fix it up? Here's the site again:
    http://www.kyledake.com/testindex.html

  • I want to make a list of my log in names and passwords that are stored in my Firefox profile to give my wife

    Wife and I are old. I am afraid if I die my dear wife won't be able to access any of our joint bank and investment accounts.
    All I want to do is provide a list for her. I can see the list in the Security window. I highlighted the list, but cannot copy or print it.
    Can someone help, please.
    Firefox 3.6, Windows 7 64 bit
    Jim

    This online community is GREAT!
    I followed the info you sent and was able to exactly what I want to do.
    From an old man (70), thank you so much.
    Jim

  • "Mac OS X wants to make changes. Type an administrator's name and password to allow this. Mac OS X wants to use the "system" keychain."

    I just installed a Belkin router to my computer so I can connect to my apartment building's internet. EVerything is working fine, the internet works. But I'm now getting this message and I'm not sure what to do? Help?

    I just solevd it :-)
    I went to keychain access and reset my default keychain ...
    After a system reboot and some certificate reimports, everyting is now fine.
    Maybe my key chain got messed up?
    Anyway, a reste on the keychain worked a treat ...
    - chris

  • How is the best way to make a mirror of your site for a Spanish version that links to the English and Visa versa

    I will need to have my site be multilingual and was wondering what the best approach to this is. The sites will be identical with the text changing from one language to another.

    Hi David,
    You can copy the pages and all its content will be copied over. You can then change the text to the desired language. For linking pages to other language pages, you need to add hyperlink on the pages to the desired language pages.
    Regards,
    Aish

  • Repeated 'mac OS X wants to make changes' prompt

    In the last few days, I have started seeing a really annoying problem.
    Some apps (e.g. Shrook) have now started displaying the prompt
    Mac OS X wants to make changes.  Type an administrator's name and password to allow this.
    Mac OS X wants to use the "System" keychain.
    Username:
    Password:
    Now, I am used to seeing this occasionally when I run some app that indeed needs to do something requiring admin privileges.  But in the case of Shrook, this will happen 10-15 times in quick succession.  It also happens on other apps - and the common factor seems to be the use of embedded browser capabilities (I guess web kit plugin or something like that).  For example, another app that shows this behaviour is F5 BIG-IP Edge Client - again, I might be prompted 10-15 times during login, and it has an embedded web page in the UI.
    This behaviour seems to have just happened (well, in the past couple of days or so)
    Interesting things about it:
    The username field in the prompt is empty - whereas previously, when this prompt occurred (rarely) it contained my (long) User name
    It seems to happen when the app is trying some sort of network/web access - probably in connection with HTTPS and hence keychain access
    I see the same behaviour in Safari when I end up using a client certificate (using HTTPS) to connect to a remote web server (when I might get the prompt 2 times or so).
    NB: The multiple prompts are NOT caused by me entering an incorrect user/password - that is easy to distinguish because the prompt will 'shiver' if I do enter an invalid combination, and will leave the username/password in the fields ready for me to correct them
    It seems to me that the app doesn't seem to know who it is running as - hence the empty username field.
    - chris

    I just solevd it :-)
    I went to keychain access and reset my default keychain ...
    After a system reboot and some certificate reimports, everyting is now fine.
    Maybe my key chain got messed up?
    Anyway, a reste on the keychain worked a treat ...
    - chris

  • Sending email OSX wants to make changes

    Everytime I send an email I get the popup saying OSX wants to make changes. Type an administrator s name and password to allow this. Help!

    Sabian, I looked at the suggested link, but don't have experience with OS X to know really how to do this. Since it seems to be the self healing feature, I tried the following and it worked.
    ~~~~~~~~~~~~
    I found a fix, but it may not be a smart thing... Thoughts are appreciated as I'm not terribly saavy with OS X. I read that this may have something to do with the self heal feature and there were a few posts that talked about editing a SHInit.xml file. What if I just renamed that file? If it broke something, I could always rename it back – or uninstall/reinstall as a last resort.
    I right-clicked on the Adobe Acrobat Pro.app and selected "Show Package Contents." In the Contents folder is the MacOS folder and in MacOS is the SHInit.xml file. I copied the file to my desktop and then renamed the file in the MacOS folder to something obvious: ##SHInit.xml.
    Now, when I run Adobe Acrobat Pro.app, it loads without requiring a password.
    If anyone has any burning reasons as to why and how this is dangerous, I'd be interested in hearing your feedback.
    Thanks!

  • Apple id has been disabled when i want to make a purchase, what the **** does that mean

    apple id has been disable when i want to make a purchase, what the **** does that mean and how can that be rectified

    If changing your password does not solve then contact itunes support.

Maybe you are looking for

  • How can I transfer tags from a JPG to a RAW?

    I have another person tagging my photos but transferring my RAW files is time consuming. If I export the RAWs as JPGs, then have them tag the JPGs, can I then get those tags transferred to the RAW from which they came? Thanks, Ed Beck

  • Apple ID & iCloud ID Question

    Apple ID & iCloud ID Question I recently added a second iPhone for my spouse and want to pair that phone to her iPad Mini so she can receive iMessages on both her phone and iPad. In setting up her phone and iPad I kept her Apple ID the same as on my

  • I just upgraded to Safari 5.0.6 and my gmail now won't load.  Please help.

    I just upgraded my Safari to 5.0.6 (using Mac OS X 10.5.8) on my MacBook Pro and now my G mail account won't load...all I get is a blank page.  G mail still loads with Firefox (which, for some reason, I do not have "permission" on my laptop to upgrad

  • How do you open Photoshop in Administrator mode?

    how do you open Photoshop in Administrator mode?

  • Best solution for massive iTunes library for streaming

    I have a large iTunes library, about 1.2 TB and I have it all on my laptop thanks to an OWC HD.  My wife and I love to rewatch a lot of our favorite t.v. shows which are on itunes, and as long as itunes is running we can easily stream to our apple tv