Trying to make a function of the 'if' need help

I have four values I want to enter in a field. What I'm trying to move is when you type in a letter, this text field will then highlight or fill a certain color. Can someone help me? And I want to have four values inside. The values would be 'G' 'R' 'Y' and '0 '. If I type in 'G' I woud like the field to fill/green tones. I'm not good at writing scripts. any help would be amazing.

I don't know if I understand you right.

Here's a script that check if you leave the field that the user made the entry.

If the entry is a 'G', the field will be filled with color.

You use this script in the event of modification of the script editor. This allows entry only G or R or Y or 0.

if(xfa.event.newText.match(/[^GRY0]/))
{
 xfa.event.change = "";
}

And this script, you must use in the output of the script editor event. This verifies if your entry is a 'G '.

if(this.rawValue == "G")
{
    Textfeld1.fillColor = "245,245,0";
}else
{
    Textfeld1.fillColor = "255,255,255";
}

The script editor, you will find on 'window '.

Hope that it helps you,

Mandy

Tags: Adobe LiveCycle

Similar Questions

  • make a function using the update query - error PLS-00103

    I get the following error message in my pl/sql developer every time, I try to create this function in my package
    PLS3-00103 encountered the symbol ";" when expecting one of the following return

    Please note, I'm trying to do is to get a user entered to perform an update for a specific row in a table called accountingtable that is located in the CDC schema. I don't want to make a comeback but in my update function.



    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    The package Specfication
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FUNCTION update_price (needed_newprice in ccl.accountingtable.price%rowtype,
    partforupdate in ccl.accountingtable.part_id%rowtype,
    colourpart to ccl.accountingtable.colour_id%rowtype);

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    package body
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    FUNCTION update_price (needed_newprice in ccl.accountingtable.price%rowtype
    partforupdate in ccl.accountingtable.part_id%rowtype,
    colourpart to ccl.accountingtable.colour_id%rowtype);



    BEGIN
    Update accountingtable
    fixed price = (needed_newprice)
    where part_id = (partforupdate)
    and colour_id = (colourpart);

    END update_price;

    Thanks in advance for any help.

    Procedure update_price (needed_newprice in ccl.accountingtable.price%rowtype,
    partforupdate in ccl.accountingtable.part_id%rowtype,
    colourpart to ccl.accountingtable.colour_id%rowtype);

    No % rowtype. Use type %

    Procedure update_price (needed_newprice in ccl.accountingtable.price%type,
    partforupdate in ccl.accountingtable.part_id%type,
    colourpart to ccl.accountingtable.colour_id%type);

    is not respected in the body

    create or replace pacakage body test_board is

    procedure update_price (needed_newprice in ccl.accountingtable.price%rowtype---ici
    partforupdate in ccl.accountingtable.part_id%rowtype,
    colourpart to ccl.accountingtable.colour_id%rowtype) is

    Published by: user2679851 on June 2, 2010 14:01

  • 'Use the cartridges SETUP' error on the printer, need help!

    I bought the printer last year in the months of August and after 6 months of use, it started having problems printing wireless. I always had to use USB to print from my laptop so I was recommended by people in this forum to reset my printer to the factory.

    I have reset several times and nothing worked, so I was advised to do so by using the Cancel button and the middle button that reset the printer. Now the problem is it says "Cartridges use SETUP" and my printer is out of warranty, it expired last month. I'm really confused about what to do. I am a student and I still have the print job and I can't afford a new printer. Calling support has no idea what to do and email support does not because of my warranty as you exhale.

    My printer is a HP Deskjet printer Wireless 3070. Product number is CQ191B.

    I really need help has begun the new year of college and I have a lot of missions to print.

    Hi ExPLOiT786

    Dragon-fur asked me to chime in with this. I will send you a private message on this in order to proceed.

    Ciara

  • I forgot the password need HELP

    I forgot my password for parental control and need to unlock them to install the new modem software.  Need HELP.

    http://support.Microsoft.com/default.aspx/KB/189126

    "Microsoft's strategy concerning lost or forgotten passwords"

    Microsoft cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features.

    Mick Murphy - Microsoft partner

  • I tried to make a website using the template, but it just goes back to the original model of Muse LOO LOO

    I tried to use a template to create a Web site and I finished one I was happy with, but when I go to download it all I get is the original model, how do I get my site up there that I know has been FTP'd and the same thing happens in the catalyst.

    You may need to clear the cache of your browser on your mobile or you will have to just wait until the devices reset themselves.  This is a feature that saves you from having to reload the page even over and over again by storing on your device if you do not have to re-download data.  Each of my devices has some kind of delay on the reloading of data, you can add a page header that will force the page to reload and no caching.  So you will see new support content every time.

    That paste in the html code for face plate on the metadata tab for the page you want to disable the update cache or in the same section for the master if you want to apply to several pages!

  • As I signed up for photoshopcc2015 and paid my first payment, why are you trying to make me sign for the period of the trail

    Why I've paid my first monthly dues and I try to use photoshop cc 2015 asking you to register for a 30 days trail every time I try to use it.

    You can check this link if you still see lawsuits:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

  • Healing Brush tool works after that I tried everything that was mentioned in the forums and help guides from adobe. Any ideas what else can we do?

    Ladies and gentlemen,

    who knows what else can be done to make the Healing Brush tool works? I use the latest Photoshop CC app 2015 WITH WINDOWS 10. I TRIED TO RESET THE TOOL, CHECKED ALL THE LAYERS, CLONE SAMPLE AND SO ON.

    ANY OTHER SUGGESTIONS?

    [Read https://forums.adobe.com/docs/DOC-7273]
    [Moved from the connections to specific program... forum forum MOD]

    Could you specify exactly how the Healing Brush tool is not working?

    Thank you, whoever this moved to the right forum.

  • Problem with the assignment of functions to the keyboard. Help, please!

    Hello

    I'm trying to get the help of the keys on the keyboard to control the navigation of the timeline. I use the code AS3 work the first time, but a little crazy then past and stops working for some reason any. You are supposed to be able to navigate along the timeline with the arrow keys (go back)

    I'm sure there is an easy solution to this problem but I am new to AS3 and it cannot know.

    Any info would be greatly appreciated.

    See you soon.

    Code on the first frame of the timeline (left label)

    Stop()

    stage.addEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_3);

    function f1_KeyDownHandler_3(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    Case Keyboard.LEFT:

    {

    gotoAndStop ('Center')

    break;

    }

    Case Keyboard.RIGHT:

    {

    gotoAndStop ('left')

    break;

    }

    }

    }

    Code used on the fifth framework of timeline (Center label)

    Stop()


    stage.addEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_2);


    function f1_KeyDownHandler_2(event:KeyboardEvent):void



    {

    switch (event.keyCode)

    {


    Case Keyboard.LEFT:

    {

    gotoAndStop ('left')

    break;

    }

    Case Keyboard.RIGHT:

    {

    gotoAndStop ('right')

    break;

    }

    }

    }

    Code used on frame timeline tenth (good label)

    Stop()


    stage.addEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_3);


    function f1_KeyDownHandler_3(event:KeyboardEvent):void


    {

    switch (event.keyCode)

    {


    Case Keyboard.LEFT:

    {

    gotoAndStop ('Center')

    break;

    }

    Case Keyboard.RIGHT:

    {

    gotoAndStop ('left')

    break;

    }

    }

    }

    You must remove the earphone prior actions such as:

    Stop();

    stage.addEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_1);

    function f1_KeyDownHandler_1(event:KeyboardEvent):void
    {

    switch (event.keyCode)
    {

    case Keyboard.LEFT:

    {
    stage.removeEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_1);
    gotoAndStop ('Center');
       
    break;

    };

    case Keyboard.RIGHT:

    {
    stage.removeEventListener (KeyboardEvent.KEY_DOWN, f1_KeyDownHandler_1);
    gotoAndStop ('left');

    break;

    }

    }
    }

  • Tries to allocate for filming on the document printer, help please!

    Good, good, new to the Board in this case, I apologize if my question is confusing: S

    IM using Illustrator to create a thank you note card that must fit within the dimensions on a sheet of 8.5 "X 11" paper which is divided into districts. low areas on a horizontal plane have a border value 5/8ths of an inch embossed in sides (of the quarter of page)

    I have my design put out on a 8.5 X 11 "paper, I ran a test print through the printer and realized that I had not compensated for handling of the printer. It was on regular paper stock. After printing, I noticed that the borders along the outer edges of the entire document (not inside the borders of the sections cut into quarters) were pushed into extra distance, say an extra 1/4 "around inside.


    When I print the actual document, I'll run the paper through the ring road (his paper cardstock and I don't want to curl).

    Now here's my question...

    What should I do to compensate for this?

    Should I make a document that has the distance of the handful of printer subtracted from its dimensions (will that still work)? would compensation on the dimensions of my 8.5 "X 11" existing document already solve this problem?

    Am I completely wrong? is there a solution integrated with adobe illustrator or a printer to solve this problem? Maybe someone could point me to a tutorial? I searched myself and found this info, I need maybe someone has a solution that is unique?

    Help, please! Thank you in advance!

    also, if those who seek in this must be clarified, let me know!

    How to cheat is at the end of the handle on the internal surface of the card and then retain the text far enough to not to cut.  Something like that

  • HP 50 g RPL program to list the factors needing help the formatted output; Matrices, vectors, lists, etc.?

    Hello

    I have not always perfer the output of the DIVIS HP 50 g.

    DIVIDED lists all the factors of a number in a way that is ineffiecent and confusing when there are many factors of a given number.

    For example, when you run 1000 DIVIS you are treated to a large "block" of numbers organized vertically in such a way that only 4-5 of the 16 factors of 1000 are still visible to you without additional keys.

    I'm trying to create a program that simply formats the output of DIVIS differently when there are a lot of factors for a given number. I'm a newbie to the USER RPL. I have the factors that come out a while loop in this format. (100, 10) Unfortunately, my time loop depends on these factors enters NOT the battery until AFTER he calculated all the. I need to find a way to store a set of factors by the execution of the loop in a kind of variable, and then remind each other both on the stack at the end of the program execution. If the code is necessary for you to see, I can post it. The problem is that it is unclear how many factors will be present at this stage. It will be the original number / 2 because I have through each pair of factor in jurisdiction parens with R-> C. In addition, the capture method must be in the loop because that if it is not the loop won't work correctly because the method by which he organized the factors in their concerned couples depends on a process of battery undisturbed during the execution of the loop. Leaving the parens at the bottom of the battery causes there are an odd number of factors in the stack, which invalidates my program for various reasons. In addition, it would be useful to include a function that could test whether or not the number of factors of an odd number, because I will need to include separate code for this. I don't know any such function in USER - RPL, but I am a beginner in this area. Thanks for any help!

    Zekelegge

    Ranothil wrote:
    (...)

    For 1000, my dream program would output;

    (...)

    Try this:

    ' DUP DIVIS SWAP ON / SWAP R-> C EVAL.

    or:

    "DIVIS DUP DUP SIZE 2 / 1 SWAP SUB DUP UNROT / R-> REVLIST C EVAL.

  • positioning of provision in the Center - need help!

    Hello

    Usually, I have no problem a layout of balance - I just select the table and click "Align Center" and voila!

    But the site I worked on has caused me no end of problems. It was designed in Fireworks by someone who had used buttons to form diamond for the navigation bar. So when I got to decide the page I really have trouble using slices of standard form. The only way around it (that I could see) was to create hot spots so that I could create the shape I needed. In any case...

    Now, I can not Center the table either, and when I move the table to the right using css margins (for trying to cheat), the drop-down menu remains where he is, doesn't 'pop up' under the correct button. Is it because of hot spots, or context menu created in Fireworks?

    Can anyone help? PLEASE?

    http://www.applebybowers.com/minima_web/

    PS: now that you've made the changes on the home page, you must go to the other pages and make the same change to the html code - i.e. - adding the new wrapper around the table.

    You will not have to make any other changes to the style sheet, as you have already stated that the rule and the rule of #wrapper will be read from each page that contains the wrapper div.

  • Back up the server: need help with synchronization of Microsoft.

    At work, we have a server lets just say its called \\backupsrv and we have My Documents of each user directed their C drive to the backup to the backup server. We also had to each user and with them logged in we ensure that their documents point to the \\backupsrv and we go to my computer\tools\folder options and click to activate offline files and synchronize with log off. Finally, we right-click on users my doc folder and select make available offline.

    The problem we see is that when we look at our network in a program called Orion that shows us how our network is used and time when most bandwidth is used. We notice on certain PC, it syncs when some users log on in the morning. Who uses a lot of bandwidth since it's synchronize users my docs for the backup server when is this. The majority of users is another branch and their my sync docs for the backup of the server that is on the road to the main branch. We checked these PC users and they are set to synchronize when you sign off the coast. Anyone else have problems with Micrsoft synchronization over a network? The operating system that we use on the PC is WinXP SP3

    Hi valley_girl1919,

    I would recommend posting your question on the TechNet Forums as they specialize in supporting the professionals:

    http://social.technet.Microsoft.com/forums/en-us/categories/

    Thank you for answers!

  • Hard drive controller is released on the PC need help with setting up new controller

    I have a HP with a built NVidia controller on the mobo.  The controller was an error and I am installing an Adaptec 2120SA on the system controller.  The computer sees the controller and it tries to start the operating system but has problems it BlueScreens and it blue screens quickly so I do not see the error code.  but I think it's because I don't have the drivers of the controller installed in the operating system.  I really don't want to reload the workstation.  Is it possible to install the drivers of the controller without starting the operating system I tried three other PC and they all have the same questions. as the driver for the controller is not there.  The OS is Vista Home Premium 64-bit.  The PC is no longer under warranty and a replacement MoBo is too much money.

    Thanks in advance for your help.

    Hi arjaywolverine,

    There is a way that can be attempted to identify the problem and we'll see if it helps.
    You need to extract the driver file from hard drive controller on a floppy/flash your motherboard CD drive, and then you restart the computer with the Windows Vista operating system DVD.

    1. turn on your computer and insert the CD or the DVD of Windows Vista.
    2. on the page install Windows, do not click on install now. Instead, click on repair your computer. The System Recovery Options dialog box appears.
    3. click load drivers and it prompts you to insert your floppy disk or USB key.
    4. navigate to the correct device and click Ok.

    Once the drivers are installed correctly, remove the DVD and diskette. Restart the computer and who should do it.

    Hope this information is useful.
    Karena R - Microsoft Support
    --------------------------------------------------------------------------------------------------------------------
    Visit our Microsoft answers feedback Forum and let us know what you think

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Icon blackBerry Smartphones BBM missing after the update. need help ASAP please

    Hi I'm using a bb bold 9780 and my bbm is 5.0.1.45 and when I tried to update, it hangs whenever he finishes the installation. And when I got tired of a battery pull, my bbm icon is missing. No idea how to solve this problem? Could really use some help here cos its pretty impt. Thanks in advance

    Hi aaron1212,

    If running above doesn't solve the problem then try this link for installing BBM:http://mobileapps.blackberry.com/devicesoftware/entry.do?code=bbm6

  • try to connect to the network, need help.

    * - Original title - Help network!

    Im trying to connect to my network, but it won't let me go up. It says im not connected to any network, but im allowed to get on the internet... the network in the try icon has a red x through it, and no matter what im network I can get on the internet but not on the network. What should I do to fix this? I tried all of the troubleshooting steps and he says that there is nothing wrong,

    Hello

    1. What is the brand and model of the computer?

    2. What is the security software installed on the computer?

    3. have you made changes on the computer recently?

    4. What is the full error message you get when you try to connect to the network?

    5. What are all the steps you've tried?

    6. how many computers is connected to the network?

    7 is the computer connected to a home network or domain?

    8. do you have a wired or wireless?

    Method 1.

    I suggest you follow the steps in this article.

    Using the troubleshooter from network in Windows 7: http://windows.microsoft.com/en-US/windows7/Using-the-Network-troubleshooter-in-Windows-7

    Method 2.

    How can I solve the network card problems?: http://windows.microsoft.com/en-US/windows7/fix-network-adapter-problems

    Method 3.

    a. click "Start", go to run, type "services.msc" (without the quotation marks) in the Open box and press ENTER.

    b. click on the button continue to check the permission of the administrator.

    c. 'Knowledge of network locations' service right click and choose Properties.

    d. under the general tab, click Start.

    e. click next to automatic startup type.

    f. click OK.

    Restart the computer and check.

    Method 4.

    If the problem persists, please take a screenshot of the window "network and sharing Center" and upload it. After the screenshot of the problem you are experiencing. Click on the link: http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-do-i-post-a-screen-shot-on-this-forum/c86de820-c620-401c-a804-9f6337cd3053

    I hope this helps.

Maybe you are looking for