Condition of two option button are true then...

Hi all

Please forgive me if I post my question in the wrong group.

I'm running LiveCycle Designer ES ver: 8.2.

I created a form that contains two different sets of radio buttons.

The use of Javascript, I'm writing a piece of saying code:

If the radio 1 = '1' and 4 '1' = radio button, then this text box is read-only and grayed.

My script is as follows:

Form1.restrictions - positioned.restrictionFrequency::click - (JavaScript, client)

If (foodStuff.rawValue is "1")

{

This.Access = "readOnly";

this.fillColor = "216, 216, 216";

This.Border.Edge.Presence = 'hidden ';

}

This code does not work? Is it because I put it in the text box? What the option 'display '. I tried to put the code in 'click', 'validate', etc., with no result. (Note: I don't know how to use this section either)

Your insight is appreciated.

Thank you

Erik

Solve the problem.

The code will now appear like so:

Form1.restrictions - positioned.restrictionFrequency::click - (JavaScript, client)

If (foodrestriction.resolveNode("foodStuff").rawValue is "1")

{

This.Access = "readOnly";

this.fillColor = "216, 216, 216";

This.Border.Edge.Presence = 'hidden ';

}

Tags: Adobe LiveCycle

Similar Questions

  • How to horizontally align two option buttons?

    Hello

    I try to add two radio buttons at my request. Is there an easy way to align two boxes horizontally on the screen without using the gridFieldManager?

    Thank you.

    My code

    Rbg RadioButtonGroup = newRadioButtonGroup();

    Add (new RadioButtonField ("AAA", rbg,true, RadioButtonField.FIELD_VCENTER));

    Add (new RadioButtonField ("BBB", rbg,false, RadioButtonField.FIELD_VCENTER));

    There is also a universal thing, solve the problem.

    You can limit the width of any predefined field (for example RadioButtonField) using the following simple page layout override:

    protected void layout(int maxWidth, int maxHeight) {
      super.layout(Math.min(maxWidth, myDesiredWidth), maxHeight);
    }
    

    Since the fields created by RIM meekly obey the limits passed for them (unlike many custom fields, I see here in the forums ), this will limit the width of your RadioButtonField and let the other have little place in the same HorizontalFieldManager.

    Good luck!

  • Two variables need to be set and reset as two different buttons are pressed

    How to define variables and reset the variables when different buttons (one at a time). They go to the same page, but their actions are taken based on the setting of variables.

    Examples or suggestions will be highly appreciated.

    keep going to the page as hidden. Pass a value to this hidden point. Based on the hidden item, the button appears.
    For example if: Pn_X = 1 display button1 if: Pn_2 = 2 display button2. Pass the value to Pn_x, you have your own conventional logic
    Another example on the use: I do not have a process button and create the Bill once I clicked and dealt with the Bill, I put the element hidden under another value. Immediately, print the invoice button will appear, and the process button disappeared. Once printing is complete, this key will also have disappeared and create a Bill button will appear. and this cycle

  • on linux, the biggest check boxes and option buttons are breaking my layout - how can I replace them?

    I tried css with selector input [type = "checkbox"] but this has no effect.

    You must add -moz-appearance: none! important;

  • cfdiv refreshes liaison to the option buttons

    Hello

    Simple enough question that I can't find much information on Google (one report of it on a work around for a cfgrid controls and not a cfdiv).

    I have a cfdiv, which is tied to a cfselect and two boxes of ala:

    < cfdiv bind = "url: annex - snippet.cfm?" ' selectAll = {selectAll} & orderBy = {orderBy} & startDate = {startDa you} "id ="plan">

    selectAll and orderBy are two option buttons, which each has two States. startDate is a cfselect.

    The problem is that the cfdiv don't not auto-refresh based on any button of the radio I go second - for example, in the above example, it will refresh the option selectAll button-based, but not the orderBy option button. If I link it in this way:

    < cfdiv bind = "url: annex - snippet.cfm?" ' orderBy = {orderBy} & selectAll {selectAll} = & startDate = {startDa you} "id ="plan">

    Then, it will refresh of orderBy, but not the selectAll.

    Even more interesting is that, if I put the cfselect (startDate) AFTER the second box option in link it the list (see above) then it will not update from this, either. Just sort of "stop" refreshing once you put in a button value. radio with what whatever after this value in the list.

    Any ideas?

    Thank you
    Sam

    Here's the js function which may help you:

    assuming that your cfdiv now looks like this:

    <>
    bind = "url: annex - snippet.cfm?" startDate
    {startDate} = & selectAll {selectAll} = & orderBy = {orderBy}"id ="plan">

    Add this to each option button in the Group orderBy:

    onClick = "refreshDiv (this.value); »

    and add this js function to the HEAD of your page:

    [script]
    refreshDiv = {function (orderby)}
    StartDate = return var [0].startDate.value;
    var selectallgroup = return [0] .selectAll;
    for (var j = 0; j)<=selectallgroup.length; j++)="">
    If (selectallgroup [j] .checked) {}
    SelectAll var is selectallgroup [j] .value;.
    }
    }
    ColdFusion.navigate (' Annex - snippet.cfm? ") startDate
    = "+ startdate + & selectAll =" + selectall + & orderBy ='+ orderby "plan");
    }
    / [script]

    (Note: the function assumes that an option button in the selectAll group)
    is always verified)

    HTH

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

  • two radio buttons on the same line

    Hello

    I wanted to add two option buttons, which should appears on the same line, which is provided for in the other. How can ido that?

    I try like this:

    VerticalFieldManager vfmMain;
    HorizontalFieldManager hfmRadio;

    Household RadioButtonField, rSetup;

    Household = new RadioButtonField ("View");
    rSetup = new RadioButtonField ("Setup");

    hfmRadio = new HorizontalFieldManager (HorizontalFieldManager.FIELD_HCENTER);

    hfmRadio.add (household);
    hfmRadio.add (rSetup);

    vfmMain = new VerticalFieldManager(VerticalFieldManager.HORIZONTAL_SCROLLBAR |)
    VerticalFieldManager.VERTICAL_SCROLLBAR);

    vfmMain.add (hfmRadio);

    but his he sent me some exception.

    any idea?

    Thanks in advance.

    Hey guys find a solution very simple for this

    VerticalFieldManager vfmMain;

    HorizontalFieldManager hfmTemp;

    vfmMain = new VerticalFieldManager();

    hfmRadio = new HorizontalFieldManager();

    RadioButtonGroup grp;

    View RadioButtonField, Setup;

    GRP = new RadioButtonGroup();

    view = new RadioButtonField ('View', grp, true, RadioButtonField.FIELD_LEFT);

    Setup = new RadioButtonField ("setup", grp, false, RadioButtonField.FIELD_RIGHT);

    hfmRadio.add (view);

    hfmRadio.add (setup);

    vfmMain.add (hfmRadio);

    try this if someone is loking for the option button

  • Radio Flash buttons are confused in CS4

    Hello, I'm having something very frustrating that I tried to fix it for a day.

    I downloaded the trial version of CS4 and installed updates.

    I create a survey. I currently have 4 keyframes.  The first keyframe is a welcome screen, 2nd keyframe is the first question with radio buttons, 3rd key frame's second question with radio buttons and 4th keyframe is the 3rd question with radio buttons.

    I have 3 layers, the first layer is the layer of actionscript for my code

    2nd layer is the survey questions,

    3rd layer is static for the background

    in any case, the problem is I have a few set out radio buttons, but when I run the flash file on my fourth keyframe and arrive at the 4th picture-key, option buttons are all in a random position on the screen and a button randomly is selected (in the Inspector of the components that I have none as default buttons to be selected). Radio buttons are not anywhere in the position that I have placed in the editor.

    I tried to remove the 4th key frame, matched the image 3 key (which looked and worked well).  The replica of the third keyframe has the same problem, the radio buttons are all arranged in random places.  I tried to place other components, and they all seem to be very well and work properly, only radio buttons are confused.

    I then tried to create a new project, he again from the beginning, and exactly on the fourth picture-key, I again had the same problem.

    I installed the trial on another computer and had the same problem on this computer.

    Anyone have an idea what is wrong?

    I can send a link to the FLA, if wanted

    I'm a complete newbie to Flash and maybe I am doing something stupid, or maybe a limitation to the test, but no idea and it's extremely frustrating.

    Thank you.

    I edited the file put a keyframe between the questions and adjusted to take into account that the code of the button.  I copied the 2nd framework to the end, just so that I knew that I had a body of law.  When I left a whole he moved things around and left selected.  After their separation, she played very well.  The file is available via: http://www.nedwebs.com/Flash/survey_cs3.fla

    Flash live things upwards and transfers of properties from the previous image to another when you have the same objects in adjacent images... often the name, even if you rename and apparently, in your case, the position and the property selected.  This will be your best bet probbably be to keep things separate.

  • I am not able to change the video quality for you tube. There are only two options 360 and Auto. Please help me.

    Hi I am experiencing strange problem for 15 to 20 days and I am not able to change the video quality for you tube. There are only two options 360 and Auto. Help me please if you can because I have a slow internet connection and I want to play video at 240, as it was before. Thanks in advance for your help.

    Could check you whether YouTube is to serve its HTML5 player or the player based on Flash? If you right click on the drive, short a context menu should appear. If the full Firefox context menu is displayed, press and release the ALT key to erase that. The last line of the menu short usually indicates which player he is.

    I'll assume HTML5 because...

    On Windows 7, Firefox should show a wide range of formats in the HTML5 player. However, if some of the features of media are disabled, preventing video MP4 decoding, then YouTube offers only 360 p (with WebM coding).

    If you have intentionally disabled Media Foundation and/or DirectShow in topic: config, then perhaps you would prefer to use the YouTube Flash Player? There are a few Add-ons that can force YouTube to serve you a Flash drive. Either of them will do, you don't need both:

  • I downloaded a game on the internet, and now my screen does not match my screen. I have two large black areas on each side of my screen. How to resize my screen to fit the screen of my computer? (and yes I tried the button expand) :))

    I have two large black areas on each side of my screen. How to resize my screen to fit the screen of my computer? (and yes I tried the button expand) :))

    Hello val2000, welcome.

    These games is managed inside of Internet Explorer? If this isn't the case, then I suggest contacting the manufacturer of your computer for the latest pgrahics drivers. If installation of those who does not resolve the problem, then try to change your resolution to one of the following values (depending on the size of your screen):

    1024 x 768
    1280 x 800 (wide, common form for laptops)
    1280 x 1024
    1680 x 1050 (widescreen)

    To change your resolution:

    1. click on START
    2. click on "Control Panel."
    3. double click on "display".
    4. click on the tab "settings".
    5. change the resolution on your cursor tab and then click on 'Apply' at the bottom right

    Let us know what happens

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to customize the height between the two options of the Radio button control component?

    Hi all

    Please help me.

    I want to reduce the height of two radio button options. I change the Radio band height & width but between two option has not changed.

    I try this code below in qml

    RadioGroup {}
    ID: radiogroup
    layoutProperties: {AbsoluteLayoutProperties}
    positionY: 375.0
    positionX: 600,0
    }
    preferredWidth: 100.0
    preferredHeight: 440,0
    maxHeight: 440,0
    minHeight: 440,0
    Option {id: stc; text: ' '; selected: true}
    Option {id: mobily; text: ""}
    Option {id: zain; text: ""}
    Option {id: blackberry; text: ""}
    }

    Please help me

    I solved this problem using scale Propertie of the RadioGroup.

    Thanks for your comments.

  • Merger of option buttons that are on separate pages and contained in the same subform

    My question can best be described as follows:

    1. I have a two page (form) document... PAGE A and PAGE B, which are considered as subforms.

    2 page A is set on "flowed - high to low" and has a total of 4 pages when rendered.

    3 A page PAGE 1 contains a group of buttons radio Page 2 contains also a group of radio buttons that should be part of the radio group on page 1, but due to the design running to a second page, it does not.

    4. in view of the foregoing, I am looking for a way to "merge" the games of buttons two radio one, while they remain on separate pages. I know you can merge the Group of exclusive radio buttons that are on the SAME page, but I did not understand how to proceed when they reside on different pages. At first, I was able to do work by giving the two groups of radio the same name and the same parameter of overall liaison, but it became a question with question #5 below.

    5 PAGE also has an ' Add' button which creates a new instance of A PAGE, when you press on. Having the option button global value binding, it automatically value groups radio every time that a new instance of the subform is/has been created... who must be provided.

    The question now is... is there a way to separate radio button group merge two that are on separate pages and they have still work properly as new instances of the subform are created?

    You can probably achieve this by writing script...

    If you want to exclude two radio buttons that are on separate pages:

    (1) change them boxes. and bottom of properties...

    Appearance: Solid circle

    Check the Style: Circle.

    In this way they looks like you are using a radio button.

    (2) write the script to the Click event of the checkbox to disable the check box on the second page.

    Page2.CheckBox2.RawValue = 0; (Or what ever you want when it is not checked.

    (3) Similarly, write code in the Click event of the checkbox in the second page.

    Page1.CheckBox1.RawValue = 0; (Or what ever you want when it is not checked.

    (4) write the code below in the initialization event of each check box, as below...

    The Initialize event Page1.checkBox1

    If (this.rawValue == "1") {//(Or what ever value you want when it is checked.

    Page2.CheckBox2.RawValue = 0;

    }

    The Initialize event Page2.checkBox1

    If (this.rawValue == "1") {//(Or what ever value you want when it is checked.

    Page1.CheckBox1.RawValue = 0;

    }

    Thank you

    Srini

  • Could you please split the 'Options' button in two?

    Used to have a single button at the top of the e-mail message to show the remote content - of Thunderbird, but now there is an Options button with this choice as well as four more. Because so many messages force me to show the remote content, need me two clicks to continue with the message. Quite boring. If this button should be divided into a button 'Show remote content' and a button 'Other Options', things would return to the previous level of convenience. (I know I might opt for remote content automatically, but I like that another security measure). TIA!

    I agree with you.
    This has been reported as a bug.

    You can add your vote for this change.
    You vote by clicking on the link to Vote - at the top where it says:
    Importance:-normal with 4 votes (vote)
    You will need to register and sign in to vote.

  • I would like to know the command line options that are available to mspaint. I in bulk of images, I want to open in paint and then save it in jpg format in the paint.

    Hello

    I would like to know the command line options that are available to mspaint.
    I in bulk of images, I want to open in paint and then save it in jpg format in the paint.
    I want a script batch for the above procedure. Can anyone suggest me the script to do the same.

    Thank you
    Bodin

    original title: ms paint command line options

    Neither Windows XP nor paint offers all these capabilities.

    "BinduS" wrote in the new message: * e-mail address is removed from the privacy * _xp...

    Hello

    I would like to know the command line options that are avaulable to mspaint.
    I in bulk of images, I want to open in paint and then save it in jpg format in the paint.
    I want a script batch for the above procedure. Can anyone suggest me the script to do the same.

    Thank you
    Bodin
    - http://answers.microsoft.com/message/04b8dfae-1fa5-42db-81c2-b042652ecfc8
    Meta tags: images; windows_xp

    Tuesday April 10, 2012 08:23:14 + 0000: CreateMessage BinduS

  • Error - ' Manager of power strategy cannot set the regime... two revision levels are incompatible "when trying to save the scheme in power options.

    Original title: cannot set a power scheme in Power Options

    Cannot set a power scheme. When I try to save the scheme, "Manager power strategy impossible to define the... two revision levels are incompatible."

    How can I fix it?

    Hi BernieHopkins,

    1 have you properly previously defined the power scheme?

    2 have you made any hardware changes or software on the computer before this problem?

    3. What is the full error message that you receive?

    If you receive the same error as mentioned in this link, you can follow this link & check if the problem persists.

    Error message: Power Manager political unable to define a strategy. Indicates two revision levels are incompatible

    Hope the helps of information.
    Please post back and we do know.

  • Laptop turned on, password appears on black screen, windows loading bar appeared, then got two options in the BIOS Setup Utility and change Boot Device order, I don't know what is happening, help please!

    My sisters notebook froze and she turned off the power switch, when she turned on the screen was black and a password box appeared when I entered the password, the XP loading bar came as usual and then I had two options at the bottom of the screen. We want to press F9 for and the other was to press F10 for BIOS Setup utility, after seconds, the screen went black and then appeared again the password and the circle continues. The laptop is only 1 week and I don't know if it's something she did or if it's a technical foul, I would be grateful if someone could help me or if I should take it to a technician. The laptop is a Compaq Mini 110 and it works on Windows XP Home Edition.

    Hi, your sisters Notebook is under warranty and it could be a hardware problem.

    As the laptop is only one week.

    I suggest that advise you your sister back to the place where it has been sold since.

    Slan go foill, Paul

Maybe you are looking for

  • Satellite U400 - Downgrade from Vista to XP

    Hello guys,. I recently bought a laptop Toshiba Satellite U400/03 s with a pre-installed version of Vista business & do not like. It came with a recovery disk for Windows XP Pro product. This confused me a bit. Can I downgrade Vista Business with XP

  • Jelly Bean for Razr?

    I was wondering if anyone has heard/read anything on the Razr getting Jelly Bean?

  • Opdatering therefore "Win.exe" ikke efter

    Word therefore ikke dokumenter. Istedet for pil eller markor, roterer en cirkel hele tiden.

  • SQL Server Services could not be installed

    I did everything I could think of to get this installed successfully.  Anyone out there have any suggestions for my delima?  I asked around and PERSON DO seem to be able to help with the installation.  I'm installting SQL server 2005 on a BONE in 200

  • Floppy drive to ASR disk not recognized at the end of the backup on external drive

    Before you back up to an external hard drive, I'm warned I need a disc to record recovery system information.  Once the backup is complete, I said that he cannot make the ASR diskette because there is no disk drive.  But there is a car and I loaded i