Visible field according to a choice of radio button

Hi all

I have this form where I have a group of yes/no radio buttons. I would like to a numeric field to appear only when users click Yes. When the form opens, or if users do not set it to Yes (not default) field should not appear.

There is a min and max limit attached to this field, which should only kick in when the field (limits of should not be applied when the field is hidden).

My questions are:

Where should I put the condition visible/hidden? In the Group of radio button or on each subform condition yes/no? I tried both, so far, but it did not work.

The script I've tried is (at the exit event of the Group of radio buttons):

If (this.rawValue == 2) {}

... RightDetection.ChoixYesNo.DetectionDelay.presence = "visible".

}

else (this.rawValue == 1) {}

... RightDetection.ChoixYesNo.DetectionDelay.presence = "hidden".

}

The limit min/max used to work before, but since I started playing with this area, I now have an error on the first bracket. Could someone tell me why?

The limit script is as follows:

If (this.rawValue < 1)

{

xfa.host.messageBox ("specify at least 1 in this area", "Warning", 1, 0);

xfa.host.setFocus (this);

}

If (this.rawValue > 365)

{

xfa.host.messageBox ("specify in most of the 365 in this area", "Warning", 1, 0);

xfa.host.setFocus (this);

}

Thank you very much in advance for your help.

Why not not just the value of the type field user entered - required

Tags: Adobe LiveCycle

Similar Questions

  • 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!

  • change field bitmap on the focus of radio button

    Hello

    I have 4 radio buttons in a group of radio buttons. Each of the radio buttons has a picture that is linked to. I want to change the image of a bitmap field whenever a radio button got the update.

    How can I do?

    Thanks in advance.

    Call super.onFocus and super.onUnfocus, as well as the change of the bitmap of treatment.

  • How can I change a value type of objects according to a Y/N Radio button?

    I have the following code behind some Radio buttons:

    Form1645.page3.TeeCrossSubform.TeeCross::exit - (JavaScript, client)

    if Page3.TeeCrossSubform.TeeCross.rawValue = 'N' { }

    XFA. Page3.TeeCrossSubform.Disruptfield.access = 'open '.

    XFA. Page3.TeeCrossSubform.TeeCrossCC.access = 'protected ';

    }

    else {

    XFA. Page3.TeeCrossSubform.Disruptfield.access = 'protected ';

    XFA. Page3.TeeCrossSubform.TeeCrossCC.access = 'open '.

    }

    NOTE: I based this code on the following information (which may be wrong, but I found nothing on the topic): http://forms.stefcameron.com/2010/03/08/disabling-all-fields-within-subform/

    Any radio button is selected (Y or N), the fields are all 'open' or 'not protected '.

    Any help is greatly appreciated!

    Hello

    Sorry my fault, the SOM expression may still be wrong.

    Try

    Form1645.Page3.TeeCrossSubform.TeeCross::click - (JavaScript, client)
    if (xfa.form.Form1645.Page3.TeeCrossSubform.TeeCross.rawValue == "1") {
    
    xfa.form.Form1645.Page3.TeeCrossSubform.Disruptfield.access = "open";
    
    xfa.form.Form1645.Page3.TeeCrossSubform.TeeCrossCC.access = "protected";
    
    } else {
    
    xfa.form.Form1645.Page3.TeeCrossSubform.Disruptfield.access = "protected";
    
    xfa.form.Form1645.Page3.TeeCrossSubform.TeeCrossCC.access = "open";
    
    }
    
  • Choice of radio buttons stop at export data after named

    If I add a name to each of the two boxes in a group, they export is no longer the user data entry. Why?

    Make sure that your Radio buttons are related to the connection of shape data (schema / XML sample data).

    Nith

  • Radio - text field - radio button

    How associate you two radio buttons to work together when you need to have the text in the middle of the radio buttons? (below the first radio button there are two text fields)

    It's a fluid subform and everytime I try to "Pack in the new group of radio buttons", it moves the text fields below two boxes.

    • radio button

    text field for the text field

    • radio button

    Hello

    use a subform set, where you can also your radio buttons and textfields manually and put this subform in you flowed subform.

  • Boxes acting as radio buttons

    I have several checkboxes with the same name, the user can check only one in the list.  In the past, the user has the option to click a check box to clear it, leave all checkboxes deselected, because the form was when it was opened.  Now, they act like radio buttons; Once the user makes a choice, it is no way to click again and end with everything unchecked.  Is there an option I can change to make it work as before?  Or maybe a Javascript solution?

    My mistake, I let Acrobat automatically detects fields this time and forgot that radio buttons have been inserted instead of checkboxes.

    Thanks for your help George!

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • Need help with AS3 on Radio button Quiz

    I am trying to set up a quiz question multiple choice of radio button, but I have problems with some of the ACE and hoped that some of you could help me. I'm fairly new to ActionScript, but I'm trying to pick up quickly. The code is listed below. The lines of errors have been increased in size.

    Import fl.controls.RadioButtonGroup;


    var radioGroup1:RadioButtonGroup = new RadioButtonGroup ("QuestionC1");

    var totalScore:int = 0;

    var totalCorrect:int = 0;

    var totalWrong:int = 0;


    cpr1a.label = "" Complete a resuscitation ";"

    cpr1b.label = "" cardio a resuscitation ";"

    cpr1c.label = "" cardio a Revival ";"

    cpr1d.label = "" Complete a Revival ";"


    cpr1a. Group = radioGroup1;

    cpr1b. Group = radioGroup1;

    cpr1c. Group = radioGroup1;

    cpr1d. Group = radioGroup1;


    submit_btn.addEventListener (MouseEvent.CLICK, submitClick);


    function submitClick (MouseEvent): void {}

    If (radioGroup1.selection == null) { }

    return;

    }

    If (radioGroup1.selection.label == "Cardio a resuscitation") { }

    status_txt.text is radioGroup1.selection.label + "is correct!";

    totalCorrect ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }else{

    status_txt.text is radioGroup1.selection.label + "is incorrect. I'm sorry. » ;

    totalWrong ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }

    }

    I don't see where this error could occur except perhaps for a case where a radio AS2 is used because it seems that they do not have a group property, but an AS3 radio button.  Make sure that your publication of Flash settings are set to use AS3.  AS3 errors normally have error numbers that also made the mistake that you mentioned ring of a scenario of AS2.

    Here is a link to the file that I made based on your code that works very well and does not display the errors you mention.  It is a CS3 file.

    http://www.nedwebs.com/Flash/AS3_Radios.fla

  • Text in the radio button field triggers?

    I'm sure it is a simple and I just have a moment on Monday, but I can't seem to find it by searching on the forum...

    I have created a pdf form and I want an option button to automatically check when someone types the text in a certain area - how can I do this?

    I would be put in place so that none of the fields in each section can be filled-in unless one of the radio buttons is selected. If space fields are displayed if this option button is selected and the same thing with the hull of the Pre-Built program fields. You can do it in show/hide fields, and you would also want to reset the fields when they are shown/hidden. Coding can be greatly simplified if you use a field hierarchical naming system for the two groups. For example, fso.width, fso.depth, fso.area, fso.a$, etc. and pss.width, pss, depth, etc.

    You can then hide all fields selection of pre-designed Shell Scheme programs and reset and display all the fields only area and reset them with the following:

    Hide all fields selection of pre-designed Shell Scheme programs and reset the

    getField("pss").display = display.hidden;

    resetForm (["SSP"];

    Hide all fields only space floor and to reset

    getField("fso").display = display.visible;

    resetForm (["Fos"];

    This is not complete, but should help you get started. Note that you can set up A$ fields so that they are automatically calculated according to the value of the Total m2 field, so that the user doesn't have to come in and maybe make a mistake. You can also configure the computed fields to display a value only if the width and depth fields are completed.

  • How to make the non selectable radio button field

    I want to UN selectable radio button field average user will be not be able to select. How can I achieve this. Please help me for this.

    You could remove them from the screen, or do unfocusable or make unmodifiable.  The choice will depend on what you're trying to reach.

  • fields to show or hide the function of radio button

    Hi, in my form there are two radio buttons available. one is for 'Yes' and other is for the 'no '. There is also another 6 available and that all fields 6 fields are hidden by default.  If I click on 'Yes' below 3 fields should visible.

    text-1

    text-2

    text-3

    If I click on "no" above 3 fields must hide & 3 fields should visible below.

    text-4

    text-5

    text-6

    then u can pls give me JavaScript to manage my requirement. Thanks in advance.

    Hiding and showing form fields by Thom Parker

    Disabling (graying-out) form fields by Thom Parker

  • Can a radio button or box multiple selection in the mandatory fields?

    The initial selection would be necessary, however to choose also other choices in addition to the original selection. In my attempt to install, I can select a field (required), but by selecting an extra field 'unchecked' original field selected

    Something like:

    Or the reasons for the cancellation

    Option 1

    Option 2

    Option 3

    Option 4

    In the case of use, you may choose Option 1 and Option 3.

    Hi K.Winger,

    OK, that's what I thought you wanted to do, but needed to make sure. You can't really do this using a 'game' of option buttons, or a group of check boxes for the reasons you mention, and more that you can't predict which of the available option will apply.

    If you need to do it with 2 sets of options. The first set would you do a group of requred radio buttons, the second is a group of option buttons. But of course it would be a strange layout.

    I think what I'd do it is divided into a drop-down list and a group of checkboxes. You just add therefore place a drop-down list box in the layout.

    In the drop-down list to add all options possible and assign required "."

    Then let what you already like checkboxes in option.

    You can also take it a few steps further.

    first add an additional option to the group box to check something in the sense of "without additional reasons.

    so now you can also do this group of checkboxes required and avoid people to jump it.

    you could also add conditions to the boxes.

    for starters, you can hide all the boxes and show them only when a selection has been made in the drop-down list

    also you can keep hiding the box for the option selected in the drop-down list, if you do not get a doubly selected option.

  • Radio button of the available text fields

    I have Radio buttons affect you yes and no, I want to make sure if yes is selected the three text fields are available and necessary, but if none is selected then three fields are not available.

    Help, please.

    Place the following code in the MouseUp event of two radio buttons. This code assumes that the value of the key to Yes is 'Yes' and text fields named 'text1', 'text2' and 'Text3 '. Change depending on your situation. If the Yes button is not selected, the text fields are hidden and their values are reset. If so, the fields are displayed.

    You really should put the function as a function called in a JavaScript script at the level of the document and call it from events MouseUp, but you should get the idea.

    (function () {}

    An array of names of fields for text fields
    var f_names is ['text1', 'text2', 'Text3'];.
    var i, f, disp, bReset;

    Whether to show or hide fields
    and to restore or not
    If (event.target.value = 'Yes') {}
    DISP = display.visible;
    bReset = false;
    } else {/ / no is selected}
    DISP = display.hidden;
    bReset = true;
    }

    Show/hide the text fields and reset if indicated
    for (i = 0; i< f_names.length;="" i="" +="1)">
    f = getField (f_names [i]);
    f.Display = disp;
    If (bReset) f.value = f.defaultValue;
    }

    })();

  • Toggle the fields based on the choice of the user

    Hello!

    I need to create a form in which it fields should be enabled based on the user's choice in a previous question (with radio buttons).

    Please, where can I find the info to learn how do?

    Thak you responsible for any idea!

    Here's the Script Editor of screen capture...

    Once the script editor opens, then edit the event click in the menu on the left corner.

    Thank you

    Srini

Maybe you are looking for

  • HP laserjet 4700 double image with only magenta

    Hi all I have hp laserjet 4700 and if I make magenta print double image I change the cartridge but still once! any idea Thank you

  • strange error with configure snapshot controlfie

    If I put the path snapshot controlfile to the db name hardcoded in the path, it works:CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / var/backup/IDB00246/snapcf_%d.f';From control file and SPFILE Autobackup 10 December 14room handle=/var/backup/IDB00246/c

  • JQuery UI reference works do not

    I tried to integrate the widget menu jquery UI in an application today and have a bit of trouble. I read the documentation here http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/app_comp001.htm#HTMDB29030 and followed these instructions of the do

  • Why my storage does not disappear when I open Photoshop and try to create a 'new' file?

    When I run Photoshop on my Macbook, click on 'NEW' and try to start, I get an error that says my "Scratch disks are full" and I cannot continue. When I check my storage, it says 7MB. Close Photoshop, my storage back up to 242 GB. Why is that happenin

  • Adobe Muse url

    When I do a site with Muse and export it to the ftp, all the pages (also the child/sup) are in the same directory as the index file...For example: if I have a site called "Démo" with a few friendly pages under 'graph ';High level: Home Chart Web site