Is it possible to have the background colour of a field change based on the entry?

I previously obtained help from a user here to create a script that autopopulates a field based on options selected in two sets of radio buttons:
var consequence = this.getField("Consequence").valueAsString; 
var likelihood = this.getField("Likelihood").valueAsString; 
if (consequence=="Insignificant" && likelihood=="Rare") event.value = "Low"; 
else if (consequence=="Insignificant" && likelihood=="Unlikely") event.value = "Low";
else if (consequence=="Insignificant" && likelihood=="Moderate") event.value = "Low";
else if (consequence=="Insignificant" && likelihood=="Likely") event.value = "Low";
else if (consequence=="Insignificant" && likelihood=="Almost Certain") event.value = "Moderate"; 
else if (consequence=="Minor" && likelihood=="Rare") event.value = "Low"; 
else if (consequence=="Minor" && likelihood=="Unlikely") event.value = "Low";
else if (consequence=="Minor" && likelihood=="Moderate") event.value = "Moderate";
else if (consequence=="Minor" && likelihood=="Likely") event.value = "Moderate";
else if (consequence=="Minor" && likelihood=="Almost Certain") event.value = "High"; 
else if (consequence=="Moderate" && likelihood=="Rare") event.value = "Low"; 
else if (consequence=="Moderate" && likelihood=="Unlikely") event.value = "Moderate";
else if (consequence=="Moderate" && likelihood=="Moderate") event.value = "High";
else if (consequence=="Moderate" && likelihood=="Likely") event.value = "High";
else if (consequence=="Moderate" && likelihood=="Almost Certain") event.value = "Critical"; 
else if (consequence=="Major" && likelihood=="Rare") event.value = "Low"; 
else if (consequence=="Major" && likelihood=="Unlikely") event.value = "Moderate";
else if (consequence=="Major" && likelihood=="Moderate") event.value = "High";
else if (consequence=="Major" && likelihood=="Likely") event.value = "Critical";
else if (consequence=="Major" && likelihood=="Almost Certain") event.value = "Extreme"; 
else if (consequence=="Catastrophic" && likelihood=="Rare") event.value = "Moderate"; 
else if (consequence=="Catastrophic" && likelihood=="Unlikely") event.value = "High";
else if (consequence=="Catastrophic" && likelihood=="Moderate") event.value = "Critical";
else if (consequence=="Catastrophic" && likelihood=="Likely") event.value = "Extreme";
else if (consequence=="Catastrophic" && likelihood=="Almost Certain") event.value = "Extreme";
// etc. 
else event.value = ""; 
I'm wondering if its possible to have the colour of the field that uses the above script, change based on the entry. E.g. If the answer is Low; make the background colour Green; if its Moderate, make it orange etc.?
I know its a big ask but thought I would check.
Thanks in advance.

One approach would be to have access to a Mac that can run the classic environment or has a pre OS X native installation. These should be able to read the files for dates of creation/modification. There is also SheepShaver that runs on OS X machines.
https://www.macupdate.com/app/mac/20615/sheepshaver
http://en.wikipedia.org/wiki/Classic_Environment
http://www.everymac.com/systems/by_capability/macs-that-support-macos-9-classic. html
https://discussions.apple.com/message/22597899#22597899

Similar Messages

  • This should be easy! How can I change the background colour of my fields?

    Apologies if this has already been posted but nothing has come up via Google nor the Forum search.
    I'm sure this should be easy but it's really doing my head in!
    I have a number of textboxes, dropdown lists, etc within my form - I have set Custom backgrounds on each which are visible within Design View. However, in Preview PDF all the fields have a default blue colour and only change to my Custom backgrounds when you enter the field.
    Is there a way of removing the default colouring of fields so that it's the same as my Custom backgrounds? My Custom backgrounds are 'linear to bottom' so I don't want to just set border.fill.color to one colour.
    Thanks for any help,

    Hi,
    If you include this Javascript in the docReady event of the root node (default "form1").
    app.runtimeHighlight = false;
    This will turn off the field highlight. It doesn't prevent the user from turning back on the highlight, but it will mean that your form opens with the highlight off.
    Hope that helps,
    Niall
    Assure Dynamics

  • Is it possible to have one search box search many fields? ( and "autocomplete" the results)?

    I'm really new to the whole area of JSON, autocomplete and javascript. My first project in this area is personal: making it easier to search for wines in my wine cellar.
    I have all my wines in a sqlite database (driven by CF 9 of course) and have a nice UI to report on, add, modify, delete, etc.  What I want to add is a search capability that works like this:  a user types text in a search box in any order they want and automagically, the wine is found. 
    To be specific, a user could start with "2005 Caymus" and the area below the text search box would be populated with all of the varietals of Caymus for 2005 that are in the cellar.   Similarly the user might start the search by typing "2005 Cabernet" in which case anything in the cellar that is from 2005 and a Cabernet Sauvignon or a Cabernet Franc from all wineries would appear below the text box. Or maybe they just want to see what French wines are in the cellar, so they'd start their search with "France" or "French". (BTW,  winery, vintage, wine type (varietal), country, appellation, etc. are all separate fields in the database/table.)
    Is my imagined search capability possible, or does each aspect of the search (year, winery, wine type/varietal) have to be user-entered into a separate text box?
    Any guidance/answers greatly appreciated!  If you're local, might even be worth sharing a vintage bottle of wine!

    Sorry I was unclear.
    Google is a single text box.  If you type "coldfusion 9 new features"
    you get a good listing of your results without having one box for
    software one for version one for descriptor and
    one for topic .  Similarly with Google it's likely you'll get
    somewhat similar results typing in "new features coldfusion 9" or
    "coldfusion 9 features".  So for my wine app I just want to present the
    user with one box so they can type in "Caymus 2005 Cabernet Sauvignon"
    (a "specific" search) or "2005" (a search for all wines from that year),
    etc.  It's the cleanness of the user experience I'm trying to
    accommodate here.    Make sense?

  • Changing the background of a text field in adobe interactive forms

    Hello All,
    Is there any way to change the background colour of text field in interactive form dynamically.??
    Thanks,

    Naresh,
    Change the language to JavaScipt in Script Editor of LiveCycle Designer and use the following code to highlight the area of TextField where R,G,B means that you have to give the RGB values of the color you want.
    <YourTextFieldName>.border.edge.color.value = "R,G,B";
    For eg:- If you have a textfield with name TextField1 then this will highlight the TextField1 area in red color.
    if ((TextField1.rawValue==null) || (TextField1.rawValue==""))
      TextField1.border.edge.color.value = "255,0,0";
    You can use this on exit event of Textfield1 or at the submit button where you check the form data.
    Chintan

  • How do I - change the background colour of the output HTML page

    Captivate 5
    I am publishing my project to html, but wish to change the background colour of the html page to match the projects colour scheme.
    I can find no option in Captivate to do this, and it is always output as white = <body   bgcolor="#f5f4f1">
    I change the colours used within captivate and change the html colour of the borders, or the captivate project background, but this does not effect the html page when published.
    Is this possible?
    At present I am having to manual amend the html to the colour of my choice.

    Hi there
    Can you post a screen grab of what you are seeing? The instructions Orange_Sean provided should have done the trick for you. Even though you aren't using Borders, it still should have changed the HTML background color. Unless we have unearthed a bug or something.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • How can I change the background colour when working on a doc in full screen view (pages)?

    Recently I have been working on docs without the distraction of having to see my desktop around my page file by using the full screen view in pages. I do find the contrast to an all black screen too harsh though and it makes my eyes more tired than seeing the clutter of my desktop around the page. Is there any way I can change the background colour?
    Any help much appreciated!

    When you are in Full screen mode move the cursor up to the top to show the Format bar. Then look to the far right. There you'll see Background  and a rectangle. Click on the rectangle and change the colour.
    For information on Pages download the Pages User Guide from your Pages Help menu.

  • My iTunes 11.0 (mac) has a black background colour and I can not see all of the information.  How do I change the background colour in iTunes 11.0 (mac)

    My iTunes 11.0 (mac) has a black background colour and I can not see all of the information for each song.    How do I change the background colour in iTunes 11.0 (mac) so I can see check boxes etc.  My download window shows no information, it is entirely black.

    Trent o
    Someone else in the forum told me how to do this.  If you have Onyx on your system then select Parameters, iTunes and turn off high contrast mode.  If you don't have Onyx, I'd suggest getting it.  It is freeware and used to help maintain your system.  Good luck
    Paul

  • How do you change the background colour of the bottom part of calendar on iPhoto

    I have created a few calendars and photo books from iPhoto, but can't seem to find how to change the background colour of the bottom part of the calendar (where you write) to match the top part where you insert the photos.  Consequently you end up with a mismatch which doesn't look as good.  I can't believe that apple have not considered this since here are about 5 or 6 colours to choose from on the top section.  I am not running the latest version of iPhoto (which is 11 I think) as I'm not on Lion- is this significant??

    Some theme will let you change the color of both pages. The travel themes, Vintage, Seasons, Kids, Colored Paper, Modern Lines, Classic (only the border around the date area), With the Big Date theme you can change the background on both pages.
    Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • TDMS : How to set the background colour programatically for .tdms file

    Hello every one 
    is there any method to set the background colour of .tdms file programatically
    Thank you
    Raja

    Hi Raja,
    "TDMS" is a file on your harddisc. How should a file have a background color?
    Or the other way around:
    How do you set the background color of a simple text file?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Ios7 control and notification center do not take the background colour,it's plan white and black.hi

    hi
    when swiping down the notification and the control center,it doesn't take the background colour as shown in the ios 7 videos, instead it's plain white and black-i am using an iphone 4,anybody else with the same issue on their iphone 4 or higher?

    Hi - I have an iPhone 4 as well.
    The problem is that the iPhone 4 only gets a sample of what is shown in the ios 7 videos. The iPhone 5, 5s and 5c can run those graphics, however the iPhone 4 can not. To get a "demo" of what it looks like, go to Settings>General>Accessibility>Increase Contrast    and turn that toggle off. This will give your phone a slight transparency effect for notif and command center, however it is nowhere near what was shown in the vids.
    Sorry for the inconvenience, hope this clarified everything,
    Ernie
    User of the pitiful iPhone 4

  • Is there any way to change the background colour in Photoshop Elements 8?.

    Is there any way to change the background colour in Photoshop Elements 8?  There are two options offered in General Preferences, Appearance Options - Dark Grey or Light Grey - but even the Light Grey is much darker than that in Photoshop CS2.  I would like to make the background much lighter.  All advice will be appreciated.

    Thanks for your comments.
    I have seen that the background can be changed in PSE7 by using a slider in Preferences- General;  I don't understand why Adobe didn't keep that facility.

  • Change the background colour of windows system-wide? (non B/W)

    I have difficulty reading on a white background, but find the White on Black theme doesn't work for me either. The background colour which works best for me is #F9EEE2;. I can work for nearly twice as long in a window with that background colour.
    So I prefer apps which allow me to change the background colour of their windows (e.g. [PathFinder|http://www.cocoatech.com>, [iTerm|http://iterm.sourceforge.net>, [Journler|http://wiki.journler.com/index.php?title=Main_Page], [OmniOutliner|http://www.omnigroup.com/products/omnioutliner>, [BBEdit|http://www.barebones.com/index.shtml], [TranslateIt|http://mac.gettranslateit.com>). I'll pay for this feature.
    However, I often don't have the choice. For example, [PoEdit|http://www.poedit.net/index.php] is the only OSX-native gettext .po editor (since Snow Leopard killed Cocoa-Java and thus [LocFactoryEditor|http://www.triplespin.com/en/products/locfactoryeditor.html]) , so I have to use it. I asked the developer if he could add a preference to change the background colour of the window (PoEdit is Carbon). He replied that this sort of preference should be system-wide, shouldn't it?
    From the Linux POV, yes, it should. Do we have that sort of option in OSX Snow Leopard? Previous OSX theme apps ShapeShifter and Mystique are respectively not yet compatible with OSX, and not available any more. I had a look at [ThemePark|http://www.geekspiff.com/software/themepark> (which does support 10.6), but don't know where to start in editing resource files. So what are our options for changing window background colour system-wide? (Or is there a Carbon plugin or library the PoEdit developer could use to embed that preference for his app.?)
    Thanks for any help you can offer with this.

    I asked a similar question before...as far as I know, there is no option to change this system-wide...short of creating a new color profile or using some hidden Terminal command.

  • Is it possible to have a PDF form flow to a second page IF the user needs to type in a lot of information? ( Like a Word Doc would)

    Is it possible to have a PDF form flow to a second page IF the user needs to type in a lot of information? ( Like a Word Doc would)
    An automated second page.

    There are two approaches.
    If you wish to use AcroForm technology, then you would need to write a bunch of JavaScript to enable this.  It has been done, but it’s not trivial.
    If you wish to use XFA technology, then it can be setup to happen automatically.
    Be aware that in both cases, even though both technologies are part of the PDF standard, that the forms will only be usable in this manner in Adobe’s viewers as many others don’t support JavaScript or XFA.

  • How to change the text color of a label by using RGB values without changing the background colour?

    xCode interface builder:
    When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
    in other words:
    While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
    How to make sure that only the color of text changes and not the background?

    You can simply do this.
        [labelname setTextColor:[UIColor colorWithRed:38/255.0f green:171/255.0f blue:226/255.0f alpha:1.0f]];

  • How do I change the background colour of pdf's?

    I seem to recall changing the background colour of pdf files.
    Anyone know how to change it back?

    Found the answer:
    Open Preview
    Preview Preferences
    General
    Select Window background and change colour.

Maybe you are looking for

  • How to see all my images in a large 3D world

    I have a 14 rectangles (shapes created in AE) distributed around a 3D world.  I have a camera (attached to a null) flying through the world to look at each one of the rectangles for a bit, and then move on. In order to get nice flowing camera moves,

  • Portions of Touchscree​n not responding on 320 All-in-One

    I know there are a ton of general touchscreen inquiries on this forum, but the regular troubleshooting hasn't worked for this problem: We're using a TouchSmart 320 as a register for a business, and it seems like the portions of the screen touched the

  • Class path Error

    Hi Guys, I was trying to write codes to check connector connectivity, I have included these jar files in class path "com.sap.portal.ivs.connectorservice_api.jar" and "GenericConnector.jar". The codes are like IConnection connection = null;      IConn

  • Embedded fonts are missing characters in display despite having all glyphs...

    Hi, As per the subject, I have a vast array of different fonts that I need to load on demand via CSS to SWF. For the most part, this works very well. I have around 600 fonts where everything is just fine. I also have some problem fonts like the below

  • Sun's JVM works better with AMD or Intel?

    Hi, I would appreciate if someone lets me know about what eventually works better or more friendly with Sun's JVM (JIT): the AMD CPUs or the Intel ones. It's a complex issue, I understand it, but I'd be glad to read some random opinions as anyway. It