Show/hide subform with Radio

I try to get a subform to be initially hidden and visible only when one of the option buttons are selected.  I looked and looked on these forums and tried all the different combinations, but none work.  I have radio buttons in a subform that is different then the elements want to hide. Any help would be great.  Here is an example of what I have.    Form1. Design1.ITManQuest.ITMan::change - (JavaScript, client) (this is where I put the script) if (this.rawValue == '1') {Design1.Routing.Signatures.ITSignSub.presence = 'visible' ;} else {Design1.Routing.Signatures.ITSignSub.presence = "hidden" ;}

Thank you, download it now

Looks like you are hiding a few lines in the following table when you click No on the radio at the top group? If Yes, then you must save the PDF dynamic form. At the moment its registered in static pdf. Nothing will happen when you click on no, the provision cannot be changed to static pdf of the way you are trying to do. Just resave as dynamic and the overview should start working properly.

Probably needs on the subform ITSignSub hidden initially

Tags: Adobe LiveCycle

Similar Questions

  • Change events - show/hide subforms

    I'm relatively new to LiveCycle. A few questions:

    (1) I can easily show and hide subforms based on a selection of list of radio (click) button. When I use the script (or similar) in conjunction with a menu drop down, I need to make the same selection twice before the correct subform appears (and the subform "undue" disappears). Under change events, the script looks like this:

    if (this.rawValue ==1) then

    WaiverSubform.presence = "invisible"

    ChangeSubform.presence = 'visible'

    ElseIf (this.rawValue ==2) then

    WaiverSubform.presence = 'visible'

    ChangeSubform.presence = "invisible"

    endif

    As mentioned, it works with a single click of a radio but button drop-down list selections must be made twice. Any help?

    (2) also under change events, I'm trying to reset the same subforms if a form filler has entered data then undergoes a change of mind, backs up and makes an alternative selection that causes the subform is invisible and does appear a subform replacement. What ends by goes, it's the entire form is reset (at least I don't get the error messages). I'm defining variables and using the xfa.host.resetData script. Any help on this would be appreciated as well.

    Larry,

    (1) try to move the script to the exit menu event dropdown.

    (2) xfa.host.ResetData effects of the entire form. You need to reset each individual rawValue to reach your goal.

    Steve

  • show/hide fields with percentages

    I'm trying to find a script to show/hide a field as a percentage that is located in one of the fields. The script that I usually use to base numbers is:

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");

    R1. Hidden = true;
    R2. Hidden = true;

    If (event.value < = "100")
    {
    event.willCommit = true;
    {

    R1. Hidden = false;
    }
    }

    If (event.value > = "101")

    {

    event.willCommit = true;

    {

    R2. Hidden = false;

    }

    }

    So I need basically the same thing again but I need to be field appears if "38.00%" or above is entered. If anything lower then it is entered, I need 2 field is displayed... I can't make it work once the decimals are here.

    Thank you in advance for your help!

    The percentage format is just for display and rounds the value of the current field, the value of the actual field is the decimal number created by the division or entered by the user.

    100% is entered as 1.00 but if the result of a calculation, it could be 99, 5 - 1.4. If you want to compare the calculated value, you may need to round the value of the fields for the same number of decimal places that display area. You should be aware that using the Math.round of JavaScript method may cause an error with numbers rounding floating-point. You can use the util.printf method in Acrobat JavaScript to properly round a field value.

    I also wouldn't quotes on numeric constants.

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");
    R1. Hidden = true;
    R2. Hidden = true;

    If (util.printf ("% 1 .2f", event.value))<= 1.00)="">
    R1. Hidden = false;
    }

    If (util.printf ("% 1 .2f", event.value) > = 1.01) {}
    R2. Hidden = false;
    }

  • Show/hide subform by using a check box - Please HELP

    Hi guys,.

    I am fairly new to Adobe Livecycle and javascript in general. I am trying to create a form that has multiple check boxes. When you have selected a checbox, I want to show a subform. If this is not checked, I want the subform to be hidden.

    Under the for the checkbox control's click event, I tried the following:

    If (this.rawValue == 1)
    {
    CheckBox1.presence = "visible";
    }
    on the other
    CheckBox1.presence = "invisible";
    }

    Also, I don't want the subforms to display when the form opens, when the user clicks the check box.

    IT DOES NOT WORK. Help, please!

    Thank you

    Use formcalc:

    On the Click event

    If ($.rawValue == 1) then
    subformname. PRESENCE "visible" =
    else subformname.presence = "hidden"
    endif

  • Display / hide subforms with menu drop-down does not not for no discernible reason

    As far as I can tell, I seem to do everything right:

    Form1. Form.MainInformation.OR - StationeryType:exit - (JavaScript, client)

    If

    (this.rawValue == 'Visiting card') { }

    Form1. Form.BusinessCardInformation.presence

    = 'visible';

    }

    on the other

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

    Form1. Form.BusinessCardInformation.presence

    = 'invisible';

    }

    Is there something inherently wrong with this code? It does not work - I want the "calling card" subform to disappear when the "calling card" is not selected and reappear if it is.

    Hello

    Also, check the following:

    • Check form is saved in XML form dynamics in the Save as dialog box.
    • Make sure the menu drop down doesn't have a limit value / specified in the object > Binding tab.
    • I would drop the second "ElseIf" and just run with a 'other '. It seems only two choices, then the principal if the declaration will capture a condition and the other with the second exit.

    Hope that helps,

    Niall

  • Show/hide subform based on the value of digital field

    Hi all


    I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.

    In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.

    The 'field' text should display different text depending on the points,

    • Less than 10 points is "beginner."
    • 10-14 is "intermediate."

    and just like that...

    If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.

    Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.

    You are looking for assistance.
    R

    The joint responds to your needs. The JavaScript on the TextField1 calculate event anime.

    Form1. #subform [0]. TextField1::calculate - (JavaScript, client)

    If (NumericField1.rawValue! = 0) {}
    If (NumericField1.rawValue< 10)="">
    DropDownList1.presence = "visible";
    DropDownList2.presence = "visible";
    this.rawValue = "beginner."
    }
    else {}
    DropDownList1.presence = 'hidden ';
    DropDownList2.presence = 'hidden ';
    If (NumericField1.rawValue< 15)="">
    this.rawValue = "middle";
    }
    else {}
    this.rawValue = "";
    }
    }
    }

    Steve

  • Show/hide fields based on the drop-down list

    Hello

    I'm trying to show/hide subforms with a drop-down list selection. I found a lot of information on the subject and ended up with what my script:

     form1.Page1.Division::exit - (JavaScript, client)
    
    switch (Page1.Division.rawValue)
    {
       case "1":
       SubformZZI.presence = "visible";
       SubformZZR.presence = "hidden";   
          break;
     
       case "2":
       SubformZZI.presence = "hidden";
       SubformZZR.presence = "visible";       
          break;
    }
    
    

    However, it does nothing when a selection is made in the drop-down list. I have the "SubformZZI" initially defined as 'Visible' and the 'SubformZZR', originally defined as "hidden".

    Any suggestions?

    Kind regards

    ZeroZone

    Check if the form is saved in dynamic form. File-> save as and choose dynamic for the type of shape...

    Other that that, you should check if you have given the values for the selection of the drop-down list as '1' and '2' in the tab of the control's binding.

    Thank you

    Srini

  • Need help with show/hide Div position

    WDRC project site

    I use a show/hide behavior with my menu items. If you mouseover all the links (except the home), you will see an image with some text appear below. The one shown in the right position is the "press room". The rest are falling down, based on their position within the Division 'description' how can I do each of their ascent to the proper position when their respective link is wriggling on?

    Thanks a lot for your senses! Problem solved.
    :-)

  • Hide/show subforms with a click of a radio button

    I'm totally in this new and have very little idea what I'm doing.  I received my form to show/hide questions based on the click of a radio button.  My next question how do I eliminate the white space between issues where the subform of questions is "hiding" until the user clicks on the radio button?

    Thanks in advance to anyone who can help me with this!

    You can be the definition of property presence 'invisible '. Which is why this white space appears on the screen.

    Try to set the value of 'hidden', it will remove the space.

    If you use subform1.presence = 'invisible', the subform is not visible for the user but occupy space on the form.

    If you use subform1.presence = 'hidden', the subform is not visible for the user and also takes up no space on the form.

    In addition, the Page subform content type should be changed to be "cast" and the form should be saved as XML dynamic.

    You must do the following to make the dynamic shape.

    (1) file menu Goto-> properties of the form and select the default values tab change the default rendering in dynamic XML form Format

    (2) select the Preview Tab. Set the type of overview as a form 'Interactive form' and preview Adobe XML dynamic XML form

    (3) Finally, while saving the PDF select Save As Type 'Adobe Dynamic XML Form.

    Thank you

    Srini

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

  • Problems with the layout themed to show/hide the region 25

    Hi all, Ive hit another question that I hope someone can help with...

    APEX 4.2.4 on XE... Theme 25.

    I've reproduced this login as apex.oracle.com [email protected] password newpass 291 3 application page.    (admin/admin is also implemented as a UN/pw)

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    Thank you very much indeed

    Richard Legge wrote:

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    The difference between the models of the region is that the Standard region has defined Points of view and the show/hide does not work. This is the mysterious properties that Oracle has not yet bothered to document. Their omission of this model is indeed likely to be a bug.

    Create a copy of the region show/hide template and add a point of view for the body of the region (content):

    Name: Body of the region

    Substitution of template: BODY

    Grid Support: Checked

    The maximum fixed grid columns: - 1


    Use the new model to show/hide for the region of select query.

  • Hide/show several subforms based on drop-down list selection

    Hi - I'm wanting to use a selection from a drop-down list for hide/show 17 subforms which contain only text. I tried if/else instructions that I used in the same way before but I have problems of implementation of that time. Is there a better way to do when several subforms are required to show/hide. Thank you.

    What event trigger you the action on? I have the following to the Exit event and it works.

    If (this.rawValue == "Hide") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "Post") {}

    subForm1.presence = "visible".

    }

    If however you have the button 'Specify Item values' clicked on the link tab, you need to change the "Hide" values for their specified either value "1".

    You have changed the code to:

    If (this.rawValue == "2") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "1") {}

    subForm1.presence = "visible".

    }

  • Problems with reset toggle buttons that show/hide captions

    I have a problem with the buttons toggle that I use to show/hide a number of legends about a single slide of the reset. The rocker works very well on the first button when I click on and off to show or hide a legend. A simple click on and watch legend. One click off the coast and the legend disappears. However, if I leave a legend that is displayed and click on other buttons to show/hide the other legends, they do not show or hide in a single click. They require two clicks. It seems that something continues the read head after that first toggle is used until there is a second click. The same thing happens if I reset to enter action. If I click on a caption and leave it in place and move to another slide, it disappears when I re - get this initial slide. However, it requires two clicks, not one alone, to display the legend. I find it very strange; I learned most of my techniques from the Lilybiri blog, but this problem does not occur on his examples. I think I'm missing something obvious, but may not know what it is. Any help is very appreciated.

    if_aa.jpg

    else_aa.jpg

    reset_aa.jpg

    Yes, I use Cp6. What I wanted to say about re-use, is that I have different scenarios where a similar script could be used, if your suggestion of a model is a good. My original intention was to write it in a txt for reference. Thank you very much for all your suggestions and links. I'll keep you posted.

  • show/hide the object with the text box

    Hello world

    has obtained a display code and masking of an object with a button and it does not work well. This is the code

    function show_hide_image1(evt:MouseEvent):void {}

    Image1.visible =! Image1.visible;

    }

    Enterbtn.addEventListener (MouseEvent.CLICK, show_hide_image1);

    Now, got another code with a box of password who send me on different Label based on what is in it. There is the code.

    Enter.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);

    function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void

    {

    If (Passwordbox.text == "cryocath") {}

    gotoAndStop ("cryocath");

    } Else if (Passwordbox.text == "54321") {}

    gotoAndStop ("A54321");

    } Else if (Passwordbox.text == "123456789") {}

    gotoAndStop ("A123456789");

    } else {}

    Stop ('error')

    }

    }

    Now, my question is, I want to introduce my hide/show code this code but do not understand how to do it. What I want is that if I enter my Passwordbox, my "image1" show/hide object "image1". If I get "image2", my "image2" show/hide object. Can someone help me with this? TNX

    :

    Enter.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);

    function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void

    {

    {if (this [PasswordBox.Text])}

    This [PasswordBox.Text] .visible =! this [PasswordBox.Text] .visible;

    }

    If (Passwordbox.text == "cryocath") {}

    gotoAndStop ("cryocath");

    } Else if (Passwordbox.text == "54321") {}

    gotoAndStop ("A54321");

    } Else if (Passwordbox.text == "123456789") {}

    gotoAndStop ("A123456789");

    } else {}

    Stop ('error')

    }

    }

  • Show/hide the image with audio (audio does not if necessary)

    Then, I ran some tests to see what was going on so I could better explain my problem.

    I have a slide with a picture that has four clickable areas. First of all, the student listen tell me for a few seconds and then is invited to click on the image areas that are highlighted.

    When the user clicks on one of the fields, an image appears and I taped audio on this 'object '. Note: I didn't use the slidelets substitution as the clickable area is hidden by the new image when the image appears on a click. The user will press a close button that is on the image, set with another clickable button to hide the image then select another pop up box. (See image below... you can see the image of forklift under the transparent image gray... This is where the user clicks the highlighted area).

    Capture.PNG

    I tried two ways:

    having the image plays on the whole timeline from beginning to end of blade (be hidden with the show/hide button function)... when I do it, the sound will not play at all (I'm guessing that this is because the audio went silently on the first few seconds of being on the screen, so by the time the student clicked the button finished audio).

    and

    Drag the beginning of the image to close the timeline when the user is asked to click on areas of the screen... when I do that, the sound play a bit, but gets cut off after a few seconds.

    If I click on the areas as soon as the blade begins to play (since i KNOW where the buttons will be activated), the audio plays very well which makes me believe my theory that the audio runs just at the moment where the user gets to click on it.

    There is no break on one of the buttons around this period, so I know this isn't that.

    What I am doing wrong?

    Thank you! :-)

    I'm happy to say after hours of frustration, I finally got to work.

    I went and read your blog Lieve on micro navigation and managed to keep the images at the point of the slide where the user is asked to click on them and define the action of tip:

    to display the image,

    hide the other images and

    Use the assign with 705 rdcmdgotoframe

    and added a line to continue so it wouldn't break (if I do this, it seemed only allows only not the last his image clicked / or show the function works because I have an action secondard on the second tab to display the button 'next' once all are clicked).

    I had to do the math, but thanks to your info on your blog, I was able to understand this. I just tested it and it works... so I'm not going to save and close and breathe until Monday when I can run my final tests on the entire project!

    Thank you!!

    ~ Gina

Maybe you are looking for