Search only partial textField rawValue

My form has a textField that users enter numbers separated by commas. I want to write an if statement, trying to find out if one of the part numbers is included in the list. Is it possible for the script to search only a portion of a textField rawValue or formattedValue?

So if the rawValue of textField1 is 1234, 4569, 3582

I want to be able to enter 4569 textField2 (a different textField), then click on a button that runs a script to see if 4569 is included in the list of reference numbers.

Is this possible?

Also: is it possible to send part numbers separated by commas in a list box?

I appreciate any assistance.

Here you go:

var aWords = TextField1.rawValue.split(","),
  cTest = this.rawValue,
  isIncluded = function (value) {
    return value.replace(/\s/g, "") == this.testValue.replace(/\s/g, "");
  },
  toTest = {
    testValue : cTest
  },
  iCount = 0;

// Check all words against the entered value
if (aWords.some(isIncluded, toTest) === true) {
  iCount += 1;
}

// Show a message, if the word was found
if (iCount > 0) {
  xfa.host.messageBox("The word '" + cTest + "' is already included in the list.", "Match found.", 0, 0)
}

Tags: Adobe LiveCycle

Similar Questions

  • How can I get rid of the program: Win32 / Torpump virus/malware microsft security only partially deleted scannner?

    How can I get rid of the program: Win32 / Torpump virus/malware microsft security only partially deleted scannner?

    Hello

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

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

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    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/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    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 others
    security programs. It is a single scanner, 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.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

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

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

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

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

    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

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

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this into the search-> find COMMAND to top box 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/

    ======================================

    If necessary AFTER you are sure that the machine is clean of any malware. (DO NOT USE IF)
    MALWARE IS STILL PRESENT).

    You can try a repair install or an upgrade in Place.

    You can use another DVD that aren't copy protected but you you need to own
    Product key. It must be the same version 32 or 64 BIT Vista OEM. Also the system
    machine to usually sell the cheap disk since you already own Windows. Don't forget to make a
    good backup or 3 (security in redundancy).

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-happened-to-the-recovery-console

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    =======================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 to get infections of virus and spyware. Seehttp://www.microsoft.com/protect/support/default.mspx for more details. For international information, check your subsidiary local Support site.

    I hope this helps.

  • Only partially completed render work area?

    Hi all

    I searched the Forum but not found an answer or a discussion on this problem.

    My problem is that make work not completed box only partially, that is if I have several clips in the work area (all showing yellow in the status area) and I apply transitions or effects to many of them, such as updated segments to date shines red in the status area, I expect to be able to make the work area [ENTER] and gave it all the segments that are red.  But it doesn't work.  It makes the first few red segments then stops.  I have to manually press ENTER several times so that he can make all the parts.

    I'm sure that's not how it is supposed to work.  In previous versions of first, it would make all the Red segments at once.

    Does anyone know what I do to make this makes all in one pass?

    I found this post on another forum:

    http://www.dvxuser.com/v6/showthread.php?211157-annoying-Premiere-Pro-CS5-preview-render-I pnnc

    But no solution has never been reported.  The person just re installed on a new computer and the problem does not appear on the new machine.  But I don't have another machine to try that.  My machine is a Windows 7 64-bit i7.  I'm in first Pro CS5 5.0.0.  My pictures comes from a Canon 5 d Mark II, 1080 p, 29.97 FPS.  Displays images in native mode and previews very well.

    Thank you in advance for any help you can give.

    Best wishes

    Lloyd

    > I am running first Pro CS5 5.0.0.

    You must install the Premiere Pro CS5 (5.0.3) update. Recent updates solve many problems.

  • My site, created using Dreamweaver cs6 shows only partial images. He worked until a few days ago when I updated Java and Firefox.

    My site, created using Dreamweaver cs6 shows only partial images.
    He worked until a few days ago when I updated Java and Firefox.
    The URL is j - f - a.com.au

    The images are not entirely loading or do you have other problems?

    You can attach a screenshot?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • Make sure you do not exceed the maximum size of 1 MB

    I noticed that some images show at the right end of the window and have set width: auto (right: 0px; width: auto) set the width according to the dimensions of the image (i.e. maintain proportions) and others fill the width full page.

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Microsoft security scanner found that roaming / IFRAME. AC said that he only partially removed

    believes that I took something, ran the microsoft safety scanner, he found a virus named roaming / Iframe.AC and he said he only partially deleted. My question is what does that mean and or how to remove the rest?   Thank you

    Hello
    Try following the steps in this virus/malware removal guide: http://www.selectrealsecurity.com/malware-removal-guide
    It contains instructions which will remove most malware infections. If you have any questions, just ask me. I hope this helps you.
    Brian
  • Microsoft safety scanner shows Trojan:WinNT / Alureon.S only partially removed

    Having the virus that made the laptop unusable. Microsoft safety scanner ran and he removed three other viruses but it's only partially removed but doesn't tell me how to get rid of completely. Under XP. Apreciate any help.

    Having the virus that made the laptop unusable. Microsoft safety scanner ran and he removed three other viruses but it's only partially removed but doesn't tell me how to get rid of completely. Under XP. Apreciate any help.

    Honestly, this is not the appropriate forum to deal with malware as serious as Alureon and its variants. I would recommend that you post your question in the support section of the malware from the forum on the link below. Alueron is a rootkit malware and should be treated using the interactive help trained. The forum is completely free, although you must register to post. This requirement prevents "spamming" and drive - by display.

    Repair-Bots online

  • IM wondering why the problem that he found was only partially deleted

    He did the scan and only partially removed the problem?  then why

    Oops. so, sorry.  I used the microsoft safety scanner, I found Bob site rankins.  There is something about a hijacking.   know not what.  I use NOD32 and it found nothing when it scans every day.

    Click on the link below. Download, update and perform a quick scan with Malwarebytes. Make sure that you update the parser before the scan.

    Malwarebytes.org

    How to use Malwarebytes

  • A ran the Safety Scanner. He only partially removed Exploit: Win32/Pdfjsc.RM. What does that mean? What should I do?

    Problems with a virus causing the re - run.  Ran, the Microsoft Security Scanner Software and it found and removed several problems, but he said only partially removed the above.  I am a novice and don't know what to do next, if anything.  I hope someone will advise you.  Thank you.

    You certainly tried many methods.

    Other posters will see your question and come up with other ideas on how to solve this problem of yours.

    Sorry, my ideas did not work for you.

    One last thing:

    Try to scan with Malwarebytes, etc in SafeMode with network.

    And here's how to go in Safe Mode options; Select safe mode with networking from the list of options:

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Also download and use this before scanning; It is a program of bleepingcomputer.com which stops the Malware work process, giving you a better chance to remove it:

    It's called RKill:

    http://www.bleepingcomputer.com/forums/topic308364.html

    See you soon.

    PS You found where deselect them; good.

    Hidden in the date and time stamp.

  • Product key is only partially visible

    My (sticker at the bottom of the computer) product key is only partially visible, is it possible that I can get all this? I have the proof of license and certificate of authenticity - those who are clearly visible. The product is a HP/Compaq Presario CQ50 running Vista. I know that when I bought the computer, that I should have written down elsewhere product key automatically. I come here is because the MS site has not exactly a section for that!

    Could someone guide me in the right direction please? I'd appreciate any help, thank you.

    ~ Joyce :)



    http://welcome.HP.com/country/us/en/contact_us.html

    Contact HP options at the link above.

    You will need to contact HP.

    See you soon.

    Mick Murphy - Microsoft partner

  • You want to search ONLY the names of files in the Explorer of Windows 7?

    I want to usually just looking for a word "in a file name& record' - and can often give a date of the range. In the Explorer of Windows 7, as soon as I type the word, I get all the files that contain the word in the content, as well.  How can I have search only the file or folder name?

    I also don't use 'my documents' or 'libraries '... I create my own subfolders - and usually on a stick... disc so I don't really understand "crawler" or if it is relevant to how I organize my files.

    I miss the Windows XP search feature in the Explorer of Windows 7!

    No need for anything that it is complicated.  Simply type what you are looking for.  If it's in the name of the file, these results will be returned first, above all results corresponding to your searchinside of the file term.  Easy.

    Without indexing places such as stick readers can always be sought, but take a little more time looking for (like XP).

    If it solves your problem, click on the link "Propose as answer" below and vote as useful by clicking on the green triangle for the lelft. Thank you!

  • TMS Type of update directory: search only

    Currently, we have two telephone directories that "import us in TMS' of their source of the telephone directory, but you want to change the settings for"Search only"due to the length of this particular directory.  I know that rather than display all entries in the phone book in a huge list like it does when it is set to import, to search to pull up to the entrance they want.  In what way, if any will to change this setting has no effect on demand conferences that use this particular directory if it is set to import or search?

    Thank you!

    If the directory is set to "Search only", you will not be able to use these contacts in regular conterences.

    -Zac

    * UPDATE *.

    You will be able to add the contact to the conferences, but TMS will display 'Entry deleted directory' for contact when go back watch the Conference. TMS also displays a warning if you view the connection tab for the routing of the call of the Conference details. I confirmed this today, and I filled a defect with regard to this. CSCui45154 The default is new, so it will not be publicly visible.

  • Please help, the TrojanSpy: Win32 / Delf was only PARTIALLY removed by the Microsoft Safety Scanner

    October 6, 2012

    Hi all!

    I ran the Scanner Microsoft (MSS) mode Quick Scan and it found nothing.

    I then ran MSS in full Scan mode and it found: TrojanSpy: Win32 / Delf

    In the results of Scan of MSS window, he says:

    "The analysis is completed with success and viruses, spyware and other potentially unwanted software were detected and partially removed".

    Given that the results showed the presence of "TrojanSpy: Win32 / Delf" I have four questions, please:

    (1) how do I get this Trojan horse on my computer? I am very sure and use a good anti-virus/malware software.

    (2) given that the results showed only partially removed SMS "TrojanSpy: Win32 / Delf", that the parts are on my computer?

    (3) how dangerous is the part or parts that remain on my computer that SSM has not deleted?

    (4) how to remove somewhere has been left more that SSM has not deleted?

    Thank you in advance for any help that anyone can give me.

    Sincerely,

    Traveler4God

    Hello

    Yes, it will remove the infection.
  • HP ENVY 4500 only partially printing pages

    Bought the printer today and after installation according to the instructions.  Decided to report situation printer sheet bu this spell partially printed - a few lines showing only half top of letters and numbers.

    Tried to clean the printheads as well but no joy.

    Tried out the ink cartridges and reset then a them Algn printer page it still only partially printed.

    Checked ink levels and they were all full juice.

    Impression I tried an email and once again that some parts of the lines have been printed.

    Just to say that left printer off for the night and this morning when I did Printer Status Report it printed perfectly.

    Problem solved

  • When I imported the photos from the hard drive, some only partially loading and show that half of this picture?

    When I imported the photos from my hard drive some only partially loaded with only half of the growth of the photo?

    Go to the Lightroom preferences > performance > uncheck 'use the graphics processor' > import images and test them.

  • Grep search only on the current page, return array "search everything".

    Hello

    Is there a way to grep search only the current page, or any page chosen in my paper (myDocument.pages [i])?

    I can only manage to search for in the document.

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = "Chapter (\d+)";

    myDocument.findGrep)

    Also, is there a way to return the content to find? In this case, I want the $1 this research...

    var a = myDocument.findGrep (). ?

    Thank you

    Christopher

    the error is because you have not initialized the tabular myRet variable.

    Another problem is the use of textframes.everyItem (), because that returns a different object.

    and another is what happens if a textframe is empty you will get an error on the meaning of "object has no text for find/replace.

    Here is the fixed code:

    var myRet=[]
    var myDocument=app.activeDocument;
    var tf = myDocument.pages[0].textFrames.everyItem().getElements(),
    tf1 = myDocument.pages[0].textFrames.count();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "Chapter";
    for (var i = 0; i < tf1; i++){
     if (tf[i].characters.length){
    myRet=myRet.concat(tf[i].findGrep());
    }
    }
    alert(myRet)
    

Maybe you are looking for