Can an if statement referred to several radio buttons?

I need to write a script that if two checkboxes or radio buttons are selected, then action will be executed.

If (condition1 & & condition2);

{action}

So I have this as my code for my button:

. Form1.page66.RadioButtonList #Field [0]: change - (JavaScript, client)

If (this.rawValue == 1 & & form1.) Intro.RadioButtonList [0]. CN.rawValue == 2);

{Intro.presence = "hidden";}

However, the action does not.

I see a syntax error in your code.

This is the answer key.

If (this.rawValue == 1 & form1.) Intro.RadioButtonList [0]. CN.rawValue == 2)

{

Intro.Presence = 'hidden ';

}

Thank you

Srini

Note: rawValue also missed in the syntax. You must have this property to get the value selected in JavaScript.

Post edited by: Srini Dhulipalla

Tags: Adobe LiveCycle

Similar Questions

  • Modification of several radio buttons to a different group

    I have a pretty big shape based on the print that I need to turn it into a form online. I already have a PDF of the document and I just want to add radio buttons on top of the boxes existing. Each question had three possible answers (Yes, no, n/a), and of course I need to put each group of 3 checkboxes in the same group to make sure that they behave as expected and only allow one option by question.

    For the speed, I called the three checkboxes, gave them the right answers and the same group name, then duplicated them between the shape of alt - dragging them.

    I now need to go through the form and change the group names so that they are grouped by issue, rather than being part of the same group.

    i.e.

    The first group is P2_Q1. I want to choose the next group of three radio buttons in a single operation, and change their group to, say, P2_Q2. Then change the next group of three at P2_Q3, P2_Q4 and so on...

    I don't want not to change the name of each option button group, partly because I have a lot of questions, but also partly because that forced to do suggest Acrobat violates every principle of sound mind and good software design, Acrobat already makes my head ache like it is.

    Can anyone help? Thanks in advance.

    Screen Shot 2016-10-01 at 16.53.31.png

    Better start to rename, there is no way around it.

    I rarely use radio buttons, but when I do a large number of groups such as this (usually groups of checkboxes) I use a custom tool I built which allows me to quickly create fields. If although there is not a good integrated solution, it is possible to build a.

  • Currently can not find out how to add radio buttons to this javascript to make it work on them also.

    I am trying to add radio buttons to the if statement so that they are highlighted when not clicked aswell

    Thank you very much

    var emptyFields = [];

    var completedFields = [];

    for (var i = 0; i < this.numFields; i ++) {}

    var f = this.getField (this.getNthFieldName (i));

    v var = this.getField (this.getNthFieldName (i));

    If (f.type! = "button" & & f.required ") {}

    f.strokeColor = color.black;

    f.fillColor = color.white;

    If ((f.type=="text" & & f.value== "") |) (f.type == "checkbox" & & f.value == "Off"). (v.Value=="")) {

    emptyFields.push (f.name);

    f.strokeColor = color.red;

    f.fillColor = color.white;

    }

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! You must fill in all the mandatory fields (highlighted in red)");

    }

    Try the following. I removed some superfluous things and formatted for readability.

    var emptyFields = [];

    for (var i = 0; i)< numfields;="" i++)="">

    var f = getField (getNthFieldName (i));

    If (f.type! = "button" & f.required) {}

    f.strokeColor = color.black;

    If)

    (f.type == 'text' & f.valueAsString == "")

    || (f.type == "checkbox" & f.valueAsString == 'Off')

    || (f.type == "radiobutton" & f.valueAsString == 'Off')

    || (f.type == "combobox" && f.valueAsString == "")) {

    emptyFields.push (f.name);

    f.strokeColor = color.red;

    }

    }

    }

    If (emptyFields.length > 0) {}

    App.Alert ("error! You must fill in all the mandatory fields (highlighted in red)");

    }

  • How can I change a checkbox with a radio button?

    I downloaded a pdf file in Adobe Acrobat Pro DC.  The system automatically made some boxes as boxes and others like radio buttons.  I need to change the boxes to radio buttons as well as a selection can be selected on the lines crossing rather than the columns down.

    Hello well,.

    By default, EchoSign would read the fields of the form already added in the document (if available) and are presented in the same way. If you don't need boxes, then you will need to remove them and add radio buttons with EchoSign himself.

    -Usman

  • Several radio buttons from multiple text entry text box.

    Once more, I find myself asking for help.

    I have a form with a lot of questions. Answers are derived radio buttons which, in turn, are displayed in the text boxes associated with each group of option buttons. This part. that I don't have a problem.

    I want to make is that all of these responses are also displayed in a text box 'Total' separate in order to give an overview of the results of the form.


    The problem I have is that I get only 1 answer in my text box 'Total' and that while it is replaced at the next RB is selected in the following selection of questions and answers.

    Any help will be appreciated.

    Raffé.

    Hi Raffé,

    If you want to view all selections made in the option buttons in the total field, you can directly all of the above as a concatenation of string like this.

    Total.rawValue = Radiobutton1.rawValue + 'some delimiter as the comma, hyphen if you want to' + radiobutto2.rawValue + etc...

    Remember that the total field shouldn't of TextField NumericField.

    Thank you

    Sidonie.

  • How can I change the size of my radio buttons

    I am building a survey and option buttons are too small. I wish they were bigger in the region of clickble and visually. I copied the external library to my folder and tried to modify the assets of the radiobutton. I double click on the symbol in the library to enter editing mode, make the changes, and then return to scene 1. Then I drag a component to the stage, but the changes I made are not reflected in the new instance - it looks exactly the same as before.

    Thank you, mgsDolphin

    I tried to change the size of the circle of radio button component to make it easier to choose. To change the size of the circle that is clickable, you import radio button component assets into your library. Help Flash provides a good explanation of this. In my Flash file is stored in:
    Macromedia > Flash > EN > component interface component user FLA > HaloTheme.FLA > Flash > themes > MMDefault > active RB

    You drag active RB out of the external library panel and in the library of your FLA file. Now you can work on them.

    The active key in the elements folder and is called Radio form 1. When you double-click on this you can evolve it and which changes size Visual and clickable circle RB. A problem is that the change is not visible in the FLA, you will need to run the SWF file to see.

  • How can I count the number of filled Radio button groups?

    Hello

    I am working on a form that some calculations. The form contains ten groups of option buttons. Part of the necessary calculations is to multiply the number of times 10 filled radio button groups. I need the form to add groups of how the user is finished. So if the user has ticked a box in 7 groups, but not in the other 3, then the value could be set to 7, then later multiplied by ten. I have no problem with the multiply by ten party. I need help to find a way to get the total number of groups done button.

    I think I could get by if I could test if a field group includes a box ticked or not. I could work with this base script:

    var v1 = + getField("Section_1").value;

    If (v1 < 0) {}

    Event.Value = "rubbish";

    } else {}

    Event.Value = v1;

    }

    But it does not work. Does anyone know how to test if a button group has a value? Or how to test if it is "NaN"? Or if not how to calculate the total number of groups button? Any help would be greatly appreciated. I did some research for it on other forums but have not yet found a thread for this topic. Apologies if I forgot the advice in this topic.

    The following code works. I don't know if it's the easiest or most efficient way, but it does the trick:

    var T1 = 0;

    var v1 = + getField("Section_1").value;

    var v2 = + getField("Section_2").value;

    var v3 = + getField("Section_3").value;

    var v4 = + getField("Section_4").value;

    V5 var = + getField("Section_5").value;

    var V6 = + getField("Section_6").value;

    v7 var = + getField("Section_7").value;

    var V8 = + getField("Section_8").value;

    var = v9 + getField("Section_9").value;

    V10 var = + getField("Section_10").value;

    If (v1 > = 0 & v1)<= 5="" )="">

    T1 = t1 = 1;

    }

    If (v2 > = 0 & v2)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v3 > = 0 & v3)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v4 > = 0 & v4)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v5 > = 0 & v5)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v6 > = 0 & v6)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v7 > = 0 & v7)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v8 > = 0 & v8)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v9 > = 0 & v9)<= 5="" )="">

    T1 = t1 + 1;

    }

    If (v10 > = 0 & v10)<= 5="" )="">

    T1 = t1 + 1;

    }

    Event.Value = t1;

  • Several radio buttons per line in the interactive report

    I added the code by radio buttons using Vincent Deelen "in a report of the APEX.

    Vincent Deelen: Using radio buttons in a report of the APEX

    It works exactly like his blog says that it will be a problem.

    My interactive report has more than one page of data. Whenever I click to go to the

    second page of data, the click event on the radio buttons in the dynamic action no longer works.

    I leave the page elements that stores my key no hidden values, and they do not change, once I have change the pages in my interactive report.

    Any ideas as to what to do or something I'm missing.

    Apex 4.2.1

    Oracle 11g Server

    theme of blue reagent 25

    Here's my query

    *********************************************************************************************************

    Select q_cev,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'Y ',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'yes ', he said.

    p_attributes = > "class ="gmpickflag01 flagY"") "

    as RBYES,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'n',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'no ', he said.

    p_attributes = > "class ="gmpickflag01 flagN"')"

    as RBNO.

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > "U."

    p_selected_value = > decode (gmpick_flag01, null, 'U',

    'U', 'U', gmpick_flag01),

    p_display = > "undecided."

    p_attributes = > "class ="gmpickflag01 flagU"')"

    as RBUND,

    sort_qkey1, sort_qkey2, sort_qkey3,

    q_key1_trans, q_key2_trans, q_key3_trans

    from cts_ajha_q_ref LEFT OUTER join cts_gen_multipick

    on (cts_ajha_q_ref.q_cev = cts_gen_multipick.gps_cev

    and cts_gen_multipick.gmpickcode = 'CTS551HZGRCKLIST01. '

    and cts_gen_multipick.op_cev =: P155102_OP_CEV)

    where cts_ajha_q_ref.cts_no_show is null

    and cts_ajha_q_ref.cts_showflag01 is not null

    *********************************************************************************************************

    I created a dynamic Action

    Event:Click
    Selection type:jQuery Selector

    jQuery Selector: .gmpickflag01

    Run the JavaScript Code

    var rbyes = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbyes"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbno = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbno"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbund = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbund"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    Send the Q_CEV bounded on the hidden page to submit items.

    $s ('P155102_RBYES', rbyes)

    $s ('P155102_RBNO', rbno)

    $s ('P155102_RBUND', rbund)

    Also have the code to step through the elements of the page to be inserted in the database.

    Try to define the scope of the event on the dynamic action to "dynamic".

  • Several groups of radio button

    I use Dreamweaver CS4 and I'm creating a purchase order on my site and I have added several radio button groups, but whenever you select one, it cancels the other. Example: I

    t-shirts: 1 2 3 4 5

    caps: 1 2 3 4 5

    etc., whenever you chose 2 caps, it cancels your order of t-shirt etc. How can I fix? Who would have thought forms would be so difficult. And then try to make a work form... sheesh. I spent too many hours on it wayyyyy. Can anyone pleaseeeeee help me. I am eternally grateful

    Exactly what I said.  The name attribute on each of these groups of radio are all 'amount '.  You must name them stuff like "Quantity_Tshirts" and "Quantity_Caps" for each group.  Otherwise, the HTML code reads all groups as a place of distinct groups.

    In the properties of the window now for each group, go through the options and the value to the far left is the name.  Make sure that each group has the same name in this field.

    In the future when you add a group of Radio make buttons that each name you give is unique on this page, otherwise it will treat you just as if it was the same group.

  • 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

  • Using switch and case with Radio buttons

    Can I use the case switch with radio buttons?

    What will be the parameter to determine the choice like xfa.event.newText is used for the drop-down list.

    Aditya

    Hi Aditya,

    Select the exclusion group in the hierarchy (you have no script each option button) and select the click event. The switch statement would use the this.rawValue.

    Hope that helps,

    Niall

  • How to change the color of the radio buttons on question slides

    Hello

    Can I change the color of the radio buttons (right now it is blue) on question slides?

    Thank you very much!

    Not out of the box and only for HTML output. Search for assets HTML option button is there. If replace you it with a custom chart... Here's the path on my system (I'm on Win 7)

    C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\htmlimages

  • 2 sets of radio buttons in a form-complications

    Hi all

    I've been looking around for code to assist me in building a form. I have developed the form and just a few problems that I can't understand.

    In a question on the form, the user can select from a set of radio buttons and select one of the five options. Then I have a second set of option buttons that the user can choose only one option. My problem is that I don't want the user to be able to select from the second set of option buttons if they chose a certain option in the first set. An example to clarify my problem:

    You have completed the training:

    Yes

    Half

    None

    So if the user selected Yes in the first set of option buttons, I want the second set of option buttons to now be selectable:

    The training was:

    Up-beat and nice

    Snoozer

    I use are very different than the latter, but it's just a simple sketch. So, how can I do the second set of radio buttons not selectable until the user selects a specific option button in the first set of option buttons.

    Thanks, I really appreciate the help!

    If you have an exclusion group called "completion" with three elements 'Yes' radio button 'Half' and 'None' and a second radio button exclusion group called "completion", go to the value of 'feedback' tab and set the type to "readOnly".

    Add the following script to the "end"... change event

    Form1.Page1.Subform1.completion::change - (JavaScript, client)

    If (this.rawValue == 'Yes') {}

    Form1.Page1.Subform1.feedback.access = "";

    }

    else {}

    Form1.Page1.Subform1.feedback.access = "readOnly";

    Form1.Page1.Subform1.feedback.RawValue = "";

    }

    If the user selects "Yes", the "feedback" group is available for selection. If the user does not select 'Yes', 'feedback' is reset and readOnly.

    Steve

  • Printable version with Radio buttons/check boxes

    I have a form that works very well and that has check boxes and radio buttons.

    All is well in shape.

    But now I need to create a printable form when the user is finished.

    The problem is when the user gets the printable version, they can always click on the radio buttons/boxes.
    (I know that is not write in the db)

    How can I create this printable version so that the radio buttons/boxes cannot be modified?

    Since it is printing a single page, you can consider making the images of your radio buttons and checkboxes. Two radio buttons, a check and the other not controlled; same for the boxes.

    The code below should give you the idea.

  • can radio buttons show/hide the info in an interactive pdf?

    Hello. I have a question to which I have been faced with during some time... hoping someone can help.

    I create a document in InDesign CS6. It's basically a guide with a joint questionnaire.

    I have forward and back buttons work properly - so that they take you from one page to another.

    However, the more difficult question is I want to have interactivity with the use of radio buttons and eventually the check boxes. Thus, for example, on page 1, I have a question multiple choice where there are three choices. Clicking the wrong answer shows a block of text saying 'no it's wrong' and clicking on the appropriate radio button shows the words "Yes, correct."

    I have created three blocks of text and make it into a multi-state object.

    Three problems:

    1. option buttons seem to be the option for "the State" in the buttons and Forms dialog box
    2. even if that were the case - the State Road seems to be only swf, non-interactive pdf form - is there a way to change this?
    3. script assuming that there IS a way, everything can be put in place so that instead of using radio buttons I have use of check boxes that only give the correct answer if the correct check boxes are selected.

    I would stick to indesign to do this, however, I think that the option is perhaps more suited for this problem?

    Many thanks in advance,

    SunsV

    1 - make 3 images and convert it into boxes option...

    Text blocks 2 2-make (Yes, his right) (No, the wrong) and convert it to buttons - rename it (Righ, evil)

    3 - Click on each radio button and apply action: Show/Hide button and form and on the visibility to activate the globe eye for buttons wrong or right.

Maybe you are looking for

  • Equium P200D - does not load

    I have an Equium P200D who did not pay correctly, I bought a new charger and it worked fine for a while. However I noticed that the laptop has not been held liable. Now the laptop does not load, and even with ac power plugged he won't shoot upward. I

  • Update BIOS 2.20 - WIN32 - Satellite A200 fan activity

    Hello I bought the Satellite A200 on February. So far, it was all right. I've recently updated my BIOS to 2.20 unfortunately. Now my fan runs constantly. I changed the graphics settings, stopped some unnecessary programs loaded during startup. Nothin

  • Error "NTLDR is missing when the computer starts".

    Originalt title: NILDR error code HELLO > DELETED MY SOFTWARE NILDR BY MISTAKE, this MEANS THAT I CAN'T START MY COMPUTOR OR GO ON THE WEBB TRIED THE Ctrl + Alt + Delete KEY, BUT IT DOES NOT WORK. I JUST NEED TO GET BACK TO UNTIL I DELETED THE DRIVER

  • HP OfficeJet Pro L7590 all-in: Solution Center does not

    We have three computers running Windows 10.  On two of them, the Solution Center will not load.  Click on the desktop icon and the image of the Cluster Solution flashes briefly and disappeared.  We use Windows 10 for several months now and have used

  • How can I keep all emails on the server if my hard drive fails

    My hard drive crashed and had to be replaced.  I have lost all emails Windows live program.