Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

Here is one solution:
// mouse up action for submit button;
function GetField(cName) {
// get field object for cName field with error checking;
var oField = this.getField(cName);
if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
return oField;
} // end GetField function;
var oPhone = GetField("phone");
oPhone.required = oPhone.value == oPhone.defaultValue;
var oEmail = GetField("email");
oEmail.required = oEmail.value == oEmail.defaultValue;
if(oPhone.required && oEmail.required) {
app.alert("Missing required fields.", 1, 0);
} else {
app.alert("Submitting form", 3, 0);
// additional code for submission;

Similar Messages

  • Is there a way to make a checkbox cause specific text fields to be required?

    Ji everybody, I'm Trying to make this work. Its really the problem described in this thread:
    Is there a way to make a checkbox cause specific text fields to be required?
    But i cant bring it to work.
    ive attached a screenshot of my settings.
    any help is much appreciated!
    thx

    If the export value is not specified, it is by default set to "Yes" in the language of your version of Acrobat which can be quite annoying when you are creating a file using two computer that have different language settings.
    If the export value is not important to you, you should use the property called .isBoxChecked(0) instead of the value property.  It works the same way except it is boolean (true or false) .
    if (this.getField("myCheckBox").isBoxChecked == true){
         this.getField("textField").required = true;
    alternatively, there is a method called .checkThisBox() for manually checking boxes.
    this.getField("myCheckBox").checkThisBox(0, true) will check it while (0, false) will un-check it regardless of the export value.

  • Is there a way to make two different text fields be "either or" like a "yes no" check box?

    I'm have Acrobat 9 Pro on a Mac running Yosemite.
    I have two text fields that each are formatted to have a number entered, but the user chooses which to fill out — either "number of weeks" OR "number of months" (two separate text fields). I don't want them to fill out both fields, only one of them.
    Is there a way to set up these two text fields so that only one can be filled out? (Sort of like when you have a "yes" and "no" check the box field, you name them the same but have different export values?)
    Thanks for any help provided.
    ~ bexterinni

    Only by custom JavaScripting.

  • Is there a way to order printing between two different documents?

    I have two different documents that need to be printed in a certain order.  1st document, 1st page ----> 2nd document, 1st page---->1st document, 2nd page---->2nd document, 2nd page---->ect.
    Is there anyway to get it to print without having to merge?  I have about 15 sets of 2 pairs of documents that need to be printed like this.
    I also need to stamp every single page in the same spot with a signature.  I am still doing research on how to do it efficiently but any recommendations would help alot.

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • I have two photo albums in my phone that I want to delete and I can't through the edit option or itunes, how can I delete them, they are taking up too much space on my phone?

    Help, I have two albulms that I'm having trouble deleting through my phone and itunes.

    Hi
    If the Photoalbums were loaded from iTunes on a computer they can only be removed by Itunes and a computer. 
    If the albums were created on your iPhone then they are deleted on your iPhone,
    Ih tyey are iTunes sourced albums you need to connect back up to iTunes/computer  that you have been using.  In the device  Photo tab deselect all the checkboxes that are being asked to sync.
    Select apply in the lower right corner.
    Read this first
    http://support.apple.com/kb/HT4236

  • My Daughter has an Ipod and when I set up the account before giving her the gift for Xmas I set it up under my email address, now I have an iphone 4 and I want to have my own account for itunes. Is there any way 2 do this w/ two separate accts, same email

    My daughter got an Ipod for Xmas and I set up the apple account before hand & used my email address to set it up, now I have purchased an Iphone 4 and I want to have a separate itunes for my music.... is there a way to have two separate itunes accounts under the same email address?

    Thanks.  I have my iPad on my lap and her iPod in my hand. We can FaceTime each other but it won't let either of us message each other. I know mine is activated as I use it frequently. I have activated hers as well. Maybe I will put it in the too hard basket for tonight, sleep on it and try again tomorrow.

  • TS2755 Is there a way to receive imessages on two different iphones if they have the same Apple ID?

    Hello - I have a work and personal iPhone. I would love to only have to carry one around with me. Is there a way to set up each phone with the same AppleID so that I will get all imessages on one phone?

    SIgn into iMessage on both devices with the same ID.

  • Is there a way to import data from a specific text field in a PDF form directly into a text field in a different PDF?

    I know you can import form data from an .fdf file. Is there a way to import a specific value from that .fdf file into a text field in a separate pdf form?

    So I want the FDF to export every time the user saves or closes the PDF. Then I want the import to happen every time the user opens the PDF. That being said, this all has to work with Adobe Reader. If this is possible in anyway, I'd manage this would require some time of script. Any thoughts?

  • Is there a way for me to have two Macs work with the same iTunes library?

    Hey all,
    I am replacing a G5 tower I have with a MacBook and I am of course going down in HD size. This means I will be using an external HD connected to a AirportExtreme BaseStation so all of my Macs can utilize it.
    I plan on putting my iTunes library on this external drive (roughly 90GB in size), and I would like to be able to rate/edit music from either of my two laptops; is this possible?
    If so, how would I go about doing that? And what, if anything, should I be mindful of? I don't want to lose my ratings or other info.
    Thanks in advance.

    Sure. Hold down the Option key when you open iTunes, and iTunes will allow you to select the iTunes Library file of your choice. So, you can select the same library file from both computers. The iTunes Library file can be on either computer or on the ext HD, next to your music folder.
    An iTunes Library file can only be accessed by one user at a time. That's the only limitation, though it may not be relevant to your intended use.
    iMac G4 17; iBook G4 1.33 Mhz 14; iPod 3G 20GB   Mac OS X (10.3.9)  

  • I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring.

    I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring. One phone is for work and one is for private and I don't need both phones to ring from one call. It's bizarre.......is this supposed to be like this? If so where can I turn it off?? And while we are at it iOS8 has installed iBooks on both of my phones and iTunes won't let me uninstall it. I don't need or want iBooks on my phones.

    Hi,
    There are two easy fixes to this.
    One, you can set up Family Sharing, in which you can have two different iCloud Accounts, yet still share the same apps, music, media etc.
    Two, go to Settings and turn-off "Handoff". This can be found under the General page.
    Hope this helps!

  • I was using a different itune id and now a new one but when i want to update the old app its always asking for my old app id. Is there a way to change my old app to my new id so that i dont have to use my old id.

    I was using a different itune id and now a new one but when i want to update the old app its always asking for my old app id.
    Is there a way to change my old app to my new id so that i dont have to use my old id?

    There is no other way you can do now. Actually, you don't need to create a new Apple ID account, you can change the Apple ID from old email account to other email accout easily by all the steps below.
    1, Open iTunes > iTunes Store > log in old Apple ID > Click on your apple ID on the right hand side on top > choose account > Apple ID > Edit
    As long as you only change your Apple ID, then all the old apps are still under your new email account as well as you can keep downloading new apps.

  • The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    Others have commented on this too.  It seems to be one of the 'improvements' of the newer version you are supposed to embrace with joy as an exciting new development.  You can send feedback to Apple but realize you may be perceived as standing in the path of  progress.
    http://www.apple.com/feedback/itunesapp.html

  • Is there a way where you can get Siri to use a specific email account to send messages?

    I have multiple mail accounts (three) on my phone - work, personal (gmail), and one that's affiliated with a volunteer group. I set them up in that order. When I last sent new message using Siri, it defaulted to use my gmail account. I can't seem to figure out the command to get Siri to use a specific account. Does anyone know how to do this?

    I don't know enough about Siri yet, but I would imagine that it links to the email account listed as "Default Account" toward the bottom of the Mail Settings options (Settings -> Mail, Contacts, Calendars -> Default Account).
    If true, to link Siri with a different account, you would have to switch the default email account.
    Give it a try and let me know if that works?
    H

  • Our organization uses an Oracle database hosted on a Unix platform and one of our data processing outputs is a "stuffer" document that has a barcode, and Unix jobs automatically send the document to a printer.   Is there a way, or does Adobe have a produc

    Our organization uses an Oracle database hosted on a Unix platform and one of our data processing outputs is a “stuffer” document that has a barcode, and Unix jobs automatically send the document to a printer.
    Is there a way, or does Adobe have a product or solution, to create a PDF version of the document including the barcode, before it’s sent to a printer?

    What format is the document that is printed? Or what technology is used to format the printer? There isn't a standard way of doing things in Unix.

  • Is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

Maybe you are looking for

  • How do I combine duration with hourly rate?

    I've just started using Numbers, and am having trouble recreating my Excel billing sheet. I'm trying to create a spreadsheet which will track the time spent on a task, and then calculate the billable cost for that task based on my hourly rate. So far

  • Request: Report queries should treat a xmltype column as a xmlelement

    In the shared components you can define a report query for creating PDF reports for example. APEX will transform the results of the defined sql query to xml on runtime. Each column of the query becomes a xmlelement. The values of the column will be t

  • Publishing Exchange calendar to web without Outlook

    I want to allow my wife to view my Exchange-based calendar remotely (eg. via the web or a third party app). I am aware of the publishing/sharing options in MS Outlook to allow others to view your calendar on the web, but as I am using 10.6, I am not

  • Essbase Application grey

    Gurus, I just installed EAS in my database server (and the HSS and other applications are in other server) I can log in to EAS but I cannot create any application. When I right-click Essbasecluster1-Create, the APPLICATION is greyed out. Do I need to

  • Up Button Event Handling Problem

    I am currently making a platform game. For the character to jump, I use the code: on(keyPress "<Up>"){ , but when a person holds the up button, if the character goes onto another platform, it jumps again. Is there a way to have an event fire only onc