Trouble with the if else when used with event.value... Please help

Please can someone shed some light on where I'm wrong.

I have a pdf form that uses a drop-down menu for the SubBrand and a series of checkboxes for the location.

the following code is placed as a calculation script custom field text of address and what im after is dynamically based on the site addressing and subbrand.

However whats happening that does not change the address based on the location and not the subbrand.

Someone please advice on this.

Thank you

If((this.getField("SubBrand").value == 'Passion' |)) ('Passion for men') & & (this.getField("Location").value == 'WW')) {}
Event.value = "not Applicable";

}

else if ((this.getField("SubBrand").value == 'Passion' |)) ('Passion for men') & & (this.getField("Location").value == 'US')) {}

Event.Value = "US02;

}

else if ((this.getField("SubBrand").value == 'Passion' |)) ('Passion for men') & & (this.getField("Location").value == 'WH')) {}

Event.Value = "WH02";

}

else if ((this.getField("SubBrand").value == "Adventure" |)) 'Liquid ' | ("Silver") & & (this.getField("Location").value == 'WW')) {}

Event.Value = "WW01";

}

else if ((this.getField("SubBrand").value == "Adventure" |)) 'Liquid ' | ("Silver") & & (this.getField("Location").value == 'US')) {}

Event.Value = "US01."

}

else if ((this.getField("SubBrand").value == "Adventure" |)) 'Liquid ' | ("Silver") & & (this.getField("Location").value == 'WH')) {}

Event.Value = "WH01;

}

on the otherEvent.Value = "";

Is not a valid construction:

If (this.getField("SubBrand").value == "Adventure" |) 'Liquid ' | "Silver")

You need to use something like this:

subBrand var = this.getField("SubBrand").value;

If (subBrand == "Adventure" | subBrand == 'Liquid' | subBrand == "Silver")

Tags: Acrobat

Similar Questions

  • Stuck in the loop now accepting the new terms of use on Xbox Live Please HELP!

    I am stuck in a loop of redirection while trying to accept the new terms of use for XBox Live. I have a child account parental consent is required. I KNOW im putting the good info because when I put wrong information, it tells me that the password is incorrect. When I put the correct information and click identify you, let's return to the page where I have to click on I accept. Is this a problem with Xbox.com? Is this a problem with my account? Can someone please answer this question? Ive been very angry, because it has been updated. Please, I just want to play online and talk to my friends. Any help would be highly appreciated. Thank you!

    Try Xbox support:
    http://support.Xbox.com/en-us/

  • I use xport 360 and I can't put my save game back on the program profile it shows a circle with a cross please help me

    I use xport 360 and I can't put my save game back on the program profile it shows a circle with a cross please help me

    Hello

    If you try to recover the gamer tag, then I suggest you follow the steps from the link below: http://support.xbox.com/en-us/pages/xbox-live/how-to/xbox-live-account-management/gamer-profile.aspx

    If this does not work then I recommend you to ask your question here: http://forums.xbox.com/xbox_forums/xbox_support/default.aspx

    Hope this information is useful.

  • Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Why are publish you again? You must first answer the question I ask in your original thread.

  • Is it possible to blackBerry smartphones can remove the BBM5.0 when using OS5.0?

    Is there a way to remove the BBM5.0 when using OS5.0? I tried using DM6.0 but BBM is marked as a component of basic impossible to remove.

    I hate BBM in general because it is always on. I don't want to install an older version.

    If anyone can help me, thanks in advance.

    lusilveira wrote:

    Is there a way to remove the BBM5.0 when using OS5.0? I tried using DM6.0 but BBM is marked as a component of basic impossible to remove.

    I hate BBM in general because it is always on. I don't want to install an older version.

    If anyone can help me, thanks in advance.

    • with a few OSes 5.0.X.X, BBm is a basic application and cannot be deleted.
    • BUT the other OSes, the BBm 5.0.X.X became an addon application and can be removed. (i.e. 5.0.0.43 6 and 5.0.0.462)

    If you have the first category OS, I suggest you try and install BBm for example using AppWorld. Perhaps by upgrading BBm, it will become an add-on.

  • How to manage the photos Lightroom when using 2 computers, keeping any changes made on one or the other?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Is the big question, where I want to especially a conclusive answer:  How to manage the photos Lightroom when using 2 computers, keeping all the changes made on one of them, using the same photos for editing. I'm not going to use DNG. Details: I mainly use my old MacBook Pro, but I wish I could use my PC as it is much better (card: i5 2500K, 16 GB of RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HD that I could use, one for backup and one for the actual Photos/changes. I you will probably need to use as my internal HDs are fairly complete and I cannot be the kind of things simply delete or move to one (developer, without loss of music, programs etc.).

    On this basis, how do I save all such Photos folder (pictures and retouching and preferably presets too)?

    According to me, that it should be possible to work cross-platform without having to create a link to the files each time, or without having to keep export/import of the catalog, keeping the single catalog and the picture library on an external drive that is then switched between systems as needed.

    Obvious first requirement is an external drive that is formatted in a way (for example, FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalogue AND folder parent si le catalogue ET le dossier parent images are both set to the same level in a global parent folder, then it should be possible to take advatage of ability of Lightroom to use relative paths instead of absolute paths to detect the images, no matter if the player is named (Mac) or lettering (PC). This is how "export as catalog of ' works, that is, it creates a 'package', alias a parent folder, containing the catalog and a replica of the folder hierarchy to exported along with the catalog images. Take this 'package' to another system (same OS or not) and "it works" even if the drive letter is different or the operating system is different... because the relative path of the image catalogue is always the same.

    I have not tested this cross-platform (if I have between various PC systems with letters of different readers) so for me it's still just a theory, but there may be others who have done this successfully.

  • When my computor starts, the screen displays administrator profressionelle of windows xp, I don't remember the password I had used and cannot log - need help

    When my computor starts, the screen displays administrator profressionelle of windows xp, I don't remember the password I had used and cannot log - need help

    The solution is here:

  • I have an email with attached wps files but I can't open them im using windows 7, someone please help

    I have an email with attached wps files but I can't open them im using windows 7, someone please help

    It is a Microsoft Works file you need a viewer for. Have a look here.

    http://www.Microsoft.com/en-CA/Download/details.aspx?ID=4

    I hope this helps.

  • Hi microsoft... Please help im using firefox, how the task i hidden bar when I watch YouTube... its always show when I watch any video please help

    Hi microsoft... Please help im using firefox, how the task i hidden bar when I watch YouTube... its always show when I watch any video please help

    You can ask the Firefox forum.
    http://forums.mozillazine.org/index.php?c=4

    I hope this helps.

  • I don't have the Edit option when using my iPad

    I don't have the Edit option when using on my iPad

    The forum of cloud is not on the use of individual programs

    The forum of cloud is on the cloud as a delivery & installation process

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it says all communities) to open the drop-down list and scroll

  • How to remove the variable created when using definedNamedWhereClauseParam()

    Hello

    My Jdev version 11.1.1.7.0.

    I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.

    Here's the problem:

    Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.

    What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.

    So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.

    I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.

    Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.

    Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
    at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
    ... more than 96



    Thank you.

    -Diette.

    Published by: Vidya Diette on February 28, 2013 08:43

    Hello

    You need access to the variable Manager. Order of reading in the JavaDocs:

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29

    Frank

  • master password bios for hp mini 1151 with code 2MC92472WZ please help. THX

    master password bios for hp mini 1151 with code 2MC92472WZ please help. THX

    Hello

    Try to enter: 74eo7vx7d0

    Kind regards

    DP - K

  • I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    Hi yjain51,

    I understand you had some problems recently with getting Touch ID to work reliably on your iPhone 5s. I know that it is a feature of great security for your iPhone, so I'm happy to help you.

    When you use Touch ID, make sure that your hands are free of any dirt or moisture so that fingerprints can be read clearly. This article explains further:

    Use the ID Touch on iPhone and iPad - Apple Support

    Thank you for using communities Support from Apple. See you soon!

  • I have xp sp2 installed, I've upgraded to sp3 it settled and went to restart, but used to charge up please help

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I have xp sp2 installed, I've upgraded to sp3 it settled and went to restart, but used to charge up please help

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hi mapo1477,

    1. do you get an error at startup of the system?
    2 have you tried to start the computer in safe mode?

    If you do not get any error message, then we recommend you to start your computer in safe mode and check if it starts successfully on the desktop. If it starts in safe mode, and then restore the computer. To do this, try the following steps:
    a. see the description of the options course in Windows XP Startup Mode
    b. Once you have started your computer in safe mode, restore the computer.
    See How to restore Windows XP to a previous state
    c. start the computer and check if the system starts in normal mode.

    To install Service Pack 3 successfully, see steps to take before you install Windows XP Service Pack 3

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My account through the Art Institute of Pittsburgh under the name of Clairelicious713 is not yet activated, please help

    My account through the Art Institute of Pittsburgh under the name of Clairelicious713 is not yet activated, please help

    Clarissa

    IF the account is provided through the school, you may be able to work with the school to get the job of the ot.  In addition, you must contact Support Adobe directly.

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

Maybe you are looking for

  • Back to PDF save via Time Machine?

    Is it possible to use Time Machine to recover a previous saved version of my PDF? I have some PDF documents in my Dropbox that I highlight on my phone or my iPad and synchronize them (saving more of). Apparently, I downloaded an older version at some

  • No GPU fan after upgrading the BIOS to 4.2 on Satellite P100-434

    Hi, I upgraded my BIOS today to version 4.2 and since the GPU fan only works during the splash screen, and once Vista has loaded, it never runs again, in addition, the CPU fan turns at a constant speed, and the screen has "shifted" to the right, so I

  • Black screen on startup Satellite A80

    I get a black screen at startup what is the problem and what is the solution for it? It might have something to do with the cold?

  • HP audio folio and light meters

    When I arrived the Folio (13-1020us), brightness and audio meter was displayed when I pressed on the keyboard.  After uninstalling hp * cough * bloatware * cough * software it is not displayed in meter.  I was wondering what software I have to reinst

  • Installation of the license with VRTE7.1.1 Manager

    Help.  I'm trying to deploy my application.  It is an image processing program, so that it uses the Vision runtime (7.1.1) but not Aqcquisition package.  I can install it, and it works very well.  However, it does not install the License Manager, so