Change the background fill color based on Radio button selections

Hello

I am very new script in LC, so I hit a wall on my last form. I am creating a form with a scale of 'leikert-like', however one of the stipulations (from my boss) is in this context of buttons are to be filled based radio which button is selected.

For example, Question 1 has 4 radio buttons to choose: poor, fair, good, great. If the person completing the form selects poor, I wish the poor to fill background color. If someone chooses right, I would like to than this background color to be filled, as well as the background of the poor. Good selection would fill the colors of good, fair and poor; and selecting the big would fill the four colors.

Someone has ideas of how / if possible? In my first tests, I got the button itself to change the colors, but not the background fill (which can be changed manually on the border palette).

Any ideas would be much appreciated. Thank you!

Aaron

Here is the code that you can use in the event of modification of the ExclusionGroup (title default RadioButtonList) object. It is the parent of each individual option button object.

for (var i=0;i

This also assumes that the value of each option button is sequentially numbered from 1 to however many boxes option you have.

Now, here's the thing. I'm assuming that each radio button has a different color. You might code for the colors yourself in JavaScript, but I manually chose the colors through UI Designers. Once all the colors of radio buttons have been defined, select a radio button and go see > XML Source. Where we see the element, add the presence of the attribute = "hidden". Do this for each option button. Here's what I mean:

                  
                  
                     
                      
                        
                     
                  
                  

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • horizontal navigation menu / widget library / change the background fill?

    I created a horizontal navigation menu of the widget library. Please, how can I change the background fill?

    I don't want to fill the empty background and for the State of the text change when knocked over or clicked on like a button.

    or I'm doing it is backwards?

    I create a button for each menu item. If so, how can I link other pages to the primary navigation?

    Hi Kristy,

    I share some of the documents that you can view and create wonderful menus for yourself.

    I hope this helps, let me know if you want more information about this.

    Best regards

    Ankush;

  • can't change color on visited sites without changing the background /foreground colors that hide options on the sitec

    I want to change the color of the visited sites, but am forced to put background and foreground colors that don't properly
    display all colors for controls etc. on many sites.
    I uncheck the button Allow pages to choose their own colors...
    Google is a good example, after doing a search, then went to change the color of sites, uncheck the allow pages button and then you don't see the research and most of the options button in the upper right corner in google.

    I'm a little colorblind, can not differentiate the blue and purple for links on sites visited...

    THX

    I think the problem is that many sites use background colors to create buttons, so you lose when you override the colors of the page.

    Perhaps you could use an add-on to refine the colors instead of the parameter of type all or nothing Firefox. I found a few extensions that say they can change the colors of the page, but I've not tried it myself:

    For a truly personalized approach of colors, links, there are two ways of general use to apply your own style rules to specific sites: the stylish extension and a file userContent.css. You must define a background color preferred text and for links visited and unvisited so that you're sure to be able to read the text.

    I hope that one of them fits the Bill!

  • Adobe Java Script to change the field of reading to write based on radio button selection

    I created a form the question asked is "Do we have a credit limit?" the user can select a Yes or not by using a radio button.  If the user selects Yes we do not have a credit limit that I want the text field "CreditLimitAmount" to change the read only entry.

    Here is my code, but it does not work, someone would be able to see what I'm doing wrong?

    GetField ("CLYes"). Value
    If {(event.target.value==="Off)"}
    f.ReadOnly = false;
    f.fillColor = color.white;

    } else {}

    f.ReadOnly = true;
    f.FillColor = Color.Gray;
    }

    You have it backwards. Use this code as your radio buttons script two MouseUp and remove the code that you have applied to the text field:

    var f = this.getField("CreditLimitAmount");
    if (event.target.value=="CLYes") {
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • Status field change based on Radio button selection

    I have a form that has a text field 'Status' and several radio buttons named: submitted for approval, approved, not approved, items received and distributed.  I need the status of self serve option button is selected.

    For example, when the 'Submit for approval' option button is selected, I want the State to be "Submitted for approval", then when the 'Authorized' option button is selected, I want to be "authorized" status and so on.  How can I do this?

    Thank you!

    Here is one approach.

    Steve

  • 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

  • Fields of text format based on radio button selection

    (Beginner) I have a form, which one party uses five 5 choice of radio button.  If "Choice5" is selected, I want to field 'X' (in the form) to display a red border.

    I need assistance with the JavaScript code for this action.

    Thank you!

    A minor change...

    "this.getField("X").strokeColor = event.target.valueAsString =='choice5 '? Color.Red: color.black;

    ... and it worked.

    Gilad thanks D!

  • Achieve an image based on Radio button selection?

    Hello

    I created a movieclip which is simply a question and the user chooses from a list of option buttons

    I created this and it works fine, but I can't understand how to set up a button "Next" or "Submit" button that, according to the choice of performed radio button, the user accesses a specific image or label.

    I bought the Adobe Flash CS5 bible, but it seems to be little information on Radio control buttons, only how to put in place to test.

    any help would be grateful.

    Look at the the RadioButtonGroup class selectedData property.  You can probably use that in any function call so that you use the property of the value assigned to the RadioButton selected.  The property value you assign to the RadioButton (s) can be different picture that each would end by will.  So in your event handler for the button function send, you can simply use something like: gotoAndStop (radioGroupName.selectedData);

  • Nested panel based on radio button selection

    And I'm back.

    In Guide Builder.

    I have a group of 4 buttons radio buttons. When "delete" things, I want to 'user id' display (that's its own Panel).

    That's what I did and it doesn't work:

    Panel 'user id' is defined in nested optional

    in the display panel rules specify for this Panel - apply the display rules, add a rule.

    under group or field guide, I chose the list of radio (the one above with 4 options) button.

    condition of game to 'equal '.

    Set the value to 'delete '.


    When I saw the guide and choose 'Remove' user id Panel does not appear.

    Who am I lack/hurt?

    Replied to your private email.

    Paul

  • What is the benchmark for Firefox placed the table borders painted with the background fill color?

    See the added image list how IE shows correctly on the left border, while Firefox right seems to paint the borders showing the same file in Web site. Is there a solution?

    Hi, Firefox requires units on the dimensions in the style rules, unfortunately it does not simply default to pixels. Try to add px:

    style = "" border: 20px double #FF6600 ""

  • Creating summary based on radio button selection

    Hi all

    I have this 22 page form which has many choices of button radio. Please find attached screenshot.

    My requirement is to have a summary on page 23, where all default options are mentioned. Assume that if the point 1, 6. 17 208 are marked as failed, they should be mentioned on the last page with comments.

    I've browsed the forum before asking the question, however, did not find any.

    I would be really helpful if you could point me in the right direction.

    Best regards

    Akanksha

    summary.jpg

    You need to iterate over all the fields, count how many of them have the value "Fail" and then display the result in your text field.

    Iterate over the fields or the other can be done with a table containing the names, or if their names are consistent ("Item1", "Item2", "Item3", etc.) then you can use a simple loop to do.

    Edit: I notice that you want to display the actual names of the items that failed, not just their number. It's a little more complex.

    If the descriptions of each item are not saved in a text field where you could read, you need to create some kind of data model in your script that will specify the name of each item, you could use them in the summary.

  • Prevent Question 2 Radio button selection until Question 1 Radio button selection

    I have a script (Javascript) messagebox to appear if the user tries to make a radio button selection to question 2, when they do not have a selection to question 1. However, the message box does not prevent the selection. the radio button is selected after the messagebox goes. How to prevent this? I tried to focus on the set of question 1 of option buttons, but it does not work.

    You could define question 2 in read-only or protected using 'access', until answered question 1.

  • Change the fill color based on the range of values

    Creating a form to inspect the parts. Work on the setting up of a text field to change the fill color based on the number or the data entered. For example: If is between 0-20 fill color is red, between 20-24 fill color is green, more filling 24 is still red, and if no data is entered in the fill color is white. The script below works for me but keeps the red field when data is deleted (empty) field. Not sure if im approaching this correctly so I should be looking at differently? I have different ranges for many fields and im trying to keep the script right to the front as possible. Thanks in advance for any help.

    If (event.value > '24')

    event.target.fillColor = color.red;

    Else if (event.value < '20')

    event.target.fillColor = color.red;

    else event.target.fillColor = color.green;

    You do not have... Change this line:

    Else if (event.value > '24')

    To do this:

    Else if (event.value > 24)

    And even with "20".

  • Site based on how do I change the background on an external model colors?

    I have a portfolio of about 50 pages of web. It is written with an external CSS and is built from a template using this template.

    Currently, there only one background color.  But I would like to have every article of 10 pages with a different background color.

    I don't know if I should try to create a library item?  A library item will work with an external STYLE sheet and the model?

    Or should I try to figure out if this should be done with an editable optional region or something?

    As it is now, when I try to add a new tag as an individual page with a new background color, the background color changes to CSS-based site collection.

    Popular clues...

    Here is an example of the page...

    http://www.johnnez.com/jonzmainbooks.html

    Jn

    You should already have a 'ediatble '.region in your template file that will appear on each page as you did from the model.

    Some embedded css allows you to change the background color of the page/s in the files where you need the different background color.

    Or if as you say you have quite a few pages to apply this background color to use another style sheet linked. So if you decide that this isn't quite the correct background color you want it will be easier to change:

    As long as the above is inserted AFTER the link to the main style sheet the new background color will be overide of the main css stylesheet.

  • Change the background color based on the value

    I'm sure that this is a trivial question, but I can't seem to find the method to do it.

    I want to change the background color of an indicator according to its value.

    For example: if I have a set of say 123degF, I would like to the color of background color green if the value is either 1% or +/-2degF.

    Otherwise the color could be if above red and blue if under.

    I was able to schedule a psychic acomplishes, but with more than 50 indicators the interface gets quite busy.

    Santosh is correct. Here is a small example of the implementation of this code:

    I've also attached a copy of this VI, with the connected devices, so you can use it as a subvi if you wish.

    He takes input of temperature limit lower and upper limit. It then returns the value of the temperature, with the color of the indicator of change.

Maybe you are looking for

  • How to download a video I created my second YouTube channel?

    I recently made a video to my YouTube channel and I want to download on my second channel. But when I connect to my Google account it downloads only in the main channel. Is it possible that I can do this? Thank you all, Arda

  • Add the account mail on iMac

    I am trying to add a new e-mail account to mail on my iMac (OS X). It's on my own domain, so I originally choose "add another Mail account" and then add details of base (name, address, password), but display "manually add the account" or not won't gi

  • Impossible to access the control panel

    Please can someone help me with this please?I am also unable to do a windows update. Please can someone help me? Thank you Dvtrv

  • Conversion Works for Word documents

    We have improved our computer to a new RESUME with Word and Excel.  Our previous system was works.   We can convert our files basic spreadsheet and of data to Excel or must they be regenerated?

  • moving files from music to new drive__windows external media player does not recognize the new location

    to increase disk space on my computer running Windows XP, I added an external hard drive and moved the folder "my music". I would then be able to delete the folder my music in the C drive and access my music in the new car, but Media Player think I d