How can I change the background color of textField2 based on the value entered in textField1(Acrobat DC)?

Could you please help me solve this problem (I'm new to adobe acrobat cc):

JavaScript written in textfield1 (Color1) - Actions:

var C1 = this.getField ("Color1");

var S1 = this.getField ("Swatch1");

Switch (C1.rawValue)

{

case "PMS 100":

S1. Border.Fill.Color.Value = "0,174,239";

break;

case "PMS 101":

S1. Border.Fill.Color.Value = "236,0,140";

break;

}

Hello.

You can use this JavaScript (not tested) as a calculation script in the textfield2:

var myField = this.getField("textField1");
if (myField.valueAsString == "AAA") {event.target.fillColor = color.red;}
else if (myField.valueAsString == "BBB") {event.target.fillColor = color.blue;}
else if (myField.valueAsString == "CCC") {event.target.fillColor = color.black;}
// etc.

Tags: Acrobat

Similar Questions

  • How can I change the value of a control on front panel?

    On the front panel, I'm doing a complex control that consists of a Slider control and control of the digital inputs. Both controls display the same information and either may be used for entry. When changing value, I want the other control to display the same value.

    How can I change the value of a control on front flap when another control changes the value? I know how to use a structure of the event to detect value has changed, but I do not know how to impose control on front panel to change its value in the block diagram.

    Why do you not use a digital display on the slider, and no code is required:

    EDIT: Yes, he said. ***

  • How can I change the value of a print job in Visio 2003. It is for 1 or 2 pages, I want that he 9 printing pages. Thank you.

    How can I change the value of a print job in Visio 2003.  He is currently configured to print pages 1 and 2, but I want to print all 9 pages at a time.  Thank you

    You can remove 1-2 and type 1-9? All HP and Epson printers I have worked this way.

    That's all I can offer as I'm not familiar with your printer.

  • How can I change the value of the sample during my simulation period?

    I'm about to set discrete PID profile vi to specify the values of the period of sampling of the order hold block. At t = 0, I wish that the value of 0.5 and then change to 1.0 when t = 5. Currently, only 0.5 goes to the waiting order discreet block. I think it's because the block takes this value and then use it for the entire simulation, do not check to see if the value has changed. Is there a way to tell the block to check this value at each time step and then adjust if necessary sampling its period?

    See code attached for reference.

    What is your overall goal for the sampling period? You will change the value more than once? Or only from 0.5 to 1?

    The PID setpoint profile should allow you to specify a profile for the values to send to the hold. He will see property values. For example if you specify only t = 0 setpoint = 0.5 and t = 5 setpoint = 1, you'll find it ramp the setpoint in 0.5 to 1.0 for the first 5 steps of time. If you want the sampling period of stay up to t = 5 0.5 is reached you will probably want to three elements in the array. set = 0.5 point t = 0, t = 4.99 set = 0.5, 1.0 = set point t = 5.

    If you're just fill one step, (from 0.5 to 1.0) you can use the Index Timestep in the Simulation parameters to determine the sampling period. Is attached a screenshot of what I mean.

  • How can I change the name of connection in acrobat reader, so that my comments be in name I chose?

    In adobe acrobat reader:

    Preferences > identify

    Login name:

    name:

    title

    etc...

    The login name is used to comment & digital signatures, and I can't change it because the deposited text is read-only.

    where can I change the name? It automatically takes the name of the computer, even if I changed the name of the computer to a name I like, but the old name of the computer.

    thanx

    :-)

    Hey ilx2,

    You could right-click on a comment and choose Properties.

    Then, open the general tab and change the name on the label of the author.

    You can tick "Make default properties" option so that all the comments show the same name of the author.

    Hope that helps.

    Kind regards

    Ana Maria

  • How can I change my background color?

    This should be an easy thing to do, but I can't recreate what the book says.

    My manual says "to make a background behind the graphic and the text, instead of on top which covers everything, you must create a new layer in Illustrator." You can do this, what else, the window layers. Click the button to create a new layer. By default, the layer will be placed on top, but you want it on the bottom, then click and drag the new layer under Layer 1, as shown in Figure 4-45. Then draw a rectangle by using the Rectangle tool. Click on draw to make it the size that you want, and then change the color via the color window. »

    I can create the new layer, but when I try to draw the rectangle and change color, nothing is actually happening. It creates the layer but the layer doesn't change color.

    you are not changing the color of the layer (which is not really something), you make an object with a filling that will serve as your background. So what's going wrong here? the rectangle tool does nothing? or you can create a rectangle but can not change its fill?

  • How can I change the value shared RAM on Satellite A300 VGA?

    I own a PSAGCA A300 I was woundering how I can lower the allocated shared memory?
    At present it has allocated 1279 MB of shared memory ontop of my HD 512 MB I think it's really useless for my needs.

    How do I lower it? I checked the Bios and it could not find in there... any ideas?

    It is not possible.
    Everything is controlled by software and shared memory will be assigned automatically.
    This means that if you run some heavy applications like games the value of shared memory is greater than performing simply applications like the browser or Word.

    But like I said above; everything is controlled automatically!

  • How can I change the value of an element in an XML file?

    Looks like I could be overloading the things.  I created a vi that can read a xml file that I created manually but also need to modify the element values.

    For example, I want to change the 'Count' of 4 to 5 element in the xml file:


       
          02/03/2015
          4
          984
       

    Help or direction is appreciated (in addition to be referred to as W3Schools which was my first station)

    Thank you

    Jeremy

    I really think you need to check the W3Schools for XPath info, makes life easier:

  • How can I change the font size in adobe acrobat reader ms?

    In my previous version, Adobe Reader X, the menu bar has a tab to set the font size to any desired %. I don't see anywhere on this new version.

    Hi sambusac,.

    Go to unravel view-> show / hide-> controls on the Page-> uncheck "Disconnect" and the above option should be 'Hide Page controls. Please see the following picture:

    If you want to change the font size while you edit the file:

    You can do this by clicking on the option Edit PDF on the right pane, and then you can choose the size of police under Format options.

    Hope that helps.

    Kind regards

    Rahul

  • How can I change the email account that uses Acrobat from Outlook to gmail?

    How to change e-mail sending adobe from outlook account to gmail?

    Hello

    We need more information on your issue. What application you are using, and what exactly you want to change and why.

    If this related to Adobe Acrobat, to change the e-mail account. Then launch Acrobat > edit > Preferences... Check the screenshot for the rest of the steps:

    Kind regards

    Ajlan Huda.

  • How can I change the order of pages in Acrobat?

    Does anyone know how to rearrange the pages in Acrobat format?

    [go to the creation, editing & export PDF forum]

    Hi Pamela,.

    You can rearrange the pages of a PDF document via the thumbnail pane in format Acrobat (Standard or Pro).  Simply open it from the left side, then slide - move individual pages or selections of pages you want.

    Adobe Reader doesn't have this capability.

    -David

  • How can I change the value of 'dd MMM yyyy' format in a datepicker from the Toolbox in Visual Basic

    I want to replace the regional format date and time. Please help. I have change the format 0 - dtpLongDate, but the problem persists.

    Hi Jay,.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

    MSDN Forum (Visual Basic)

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home

    Hope this information helps.

  • How can I change the value of the data provided by the user in ADF form before performing operation CreateInsert in adf 11 g

    Basically, I created an EO, then original Version of it. Then I posted ADF:form of her and the operation of CreateInsert attributed to it. Now, I want to encrypt a user provided data and then store.

    If you want to encrypt the data before saving it in the database, you can:

    Exposes the implementation of EO (EOImpl.java) class, override the method doDML() like this:

    ' Public Sub doDML (operation int, TransactionEvent e) {}

    If (operation is DML_INSERT)

    {

    setPassword (YourEncryptUtility.encrypt (getPassword ()));

    super.doDML (operation, e);

    }

    }

  • How can I change the value of a group of radio buttons to a bidding process?

    I have an interactive report on page 1, and I'm passing the value of a column to the page of the two group of radio buttons.

    I wish I could switch this radio group and pass the parameter currently displayed in the submission process:

    #OWNER #. (CHPWD)
    PUSERNAME = >: P2_USERNAME,.
    PPASSWORD = >: P2_NEWPASSWORD,.
    (PUNLOCK = >: P2_RADIO_LOCKED);

    : P2_RADIO_LOCKED is not acquire any value that I can see.

    Published by: xerosaburu on August 17, 2009 15:07

    Published by: xerosaburu on August 17, 2009 15:08

    Hello:

    You could modify the code for the page process of implantation of the rocker.

    begin
    #OWNER#.CHPWD(
    PUSERNAME => :P2_USERNAME,
    PPASSWORD => :P2_NEWPASSWORD,
    PUNLOCK => :P2_RADIO_LOCKED);
    select decode(:P2_RADIO_LOCKED,'1','2','2','1) into :P2_RADIO_LOCKED from dual;
    end;
    

    CITY

  • How can I change the values of control based on a file of reading?

    I understand that the controls were only outputs and indicators has only entries, but I'm looking for help to create code that has the capabilities of both. More specifically and, ideally, my façade would allow the user to select an old spreadsheet file to read, and these values of the worksheet would be poster. The user could then change these values to their liking and then submit those twisted values, such as a new file / replaces the old/etc. The important part is the the indicating and control playback in values.

    Thank you

    Need to wire the worksheet values in the local.  The control itself just watches.  What you have wired in your VI sets the control to its current value (of course, a bit pointless).

Maybe you are looking for

  • 15AC184tu: windows drivers for hp15ac184tu 8

    my laptop model is 15ac184tu. I am currently using win 8. but I don't have the drivers for win 8. so can you help me solve this problem... As soon as possible.

  • HP Probook 4530 s Bluetooth driver does not

    Hi all I have a Probook s 4530 and Bluetooth driver does not work. In Device Manager I see "Windows has stopped this device because it has reported problems (Code 43)". I deleted the driver and re-installed from the site Web HP and Intel support Web

  • (Audio and vedios) sound but ProBook s 4440 - no media system is coming

    I use a 4440 s probook with Windows 8 pro. I am not able to listen to any kind of audio except the sound system and vedios online. all my drivers in my device manager looks good. Help, please!

  • Windows 7 is very slow to stop

    When I stopped in Windows 7 the "Shutting Down" screen stays on for more than three minutes. I tried to start in safe mode, but I get the same result. I tried to disable third-party programs and get the same result. It's annoying when you have to res

  • Module development of Lightroom CC 2015.4 - frequent gels

    * Windows 7 Pro 64-bit* LR CC 2015.4(a) before, I used the alternative non - CC (LR 6.4), but virtually all the movements of a slider in the 10th development module freezes LR(b) last week I went to "LR Photoshop CC"; after complete LR uninstalled 6.