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

Tags: Adobe LiveCycle

Similar Questions

  • 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

  • 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

  • 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

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

    }

  • Show/hide region when the drop-down list is changed

    Hello

    I need show/hide a region when dropdow (selection list) is changed.

    I used dynamic action:

    Event : change
    Selection Type : Item(s)
    Item(s):P50_my_list
    condition : JS expression
    $v('P50_my_list') == 1
    
    True Action :
    Action : Execute JS Code
    Code : $('#region_name').show();
    
    // OR use Action ==> Show
    
    

    False Action :
    Action : Execute JS Code
    Code : $('#region_name').hide();
    
    // OR use Action ==> hide
    

    But the region has still shown!

    Also, I used a JS function (in the dynamic action of the place) but I met the same result.


    function showHideRegion(pValue)
    {     var show_or_hide = $x(pValue).value;
        if (show_or_hide == 1)
          {$('#ALTERNATIVEN_LIST').hide();}
        else
          {$('#ALTERNATIVEN_LIST').show();}
    }
    
    
    

    Hello

    I solved the problem with the js function:

    function showHideRegion (pThis, pValue)

    {var show_or_hide = $x (pValue) .value;}

    If (show_or_hide == 1)

    {

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.display = 'none ';

    } else {}

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.Display = "block" ;}

    }

  • Can we capture the event of show/hide layer in PS?

    Hi all..!!!

    I have a request to all the coders of Photoshop! We can capture the click event of show/hide layers in Photoshop... ? I need to know my code if the user clicked on the eye of show/hide layer... !!

    Pls answer soon... !!

    Thank you!

    http://forums.Adobe.com/thread/858391?TSTART=0

  • Show/hide Sub forms in LiveCycle ES 8.2

    Hi all

    I use Livecycle to create a form and want to following features:

    If a specific value is selected in the drop-down list, it should show/hide a sub-shape.

    However, I am not able to do. I looked at adobe livecycle documents, Adobe and GOOGLE user forums but fail to run the code.

    I used suite PDF as an example:

    http://partners.Adobe.com/public/developer/en/LiveCycle/Designer/PDFs/ChangingObjectPresen Ed.pdf

    The code below is written on the drop-down box and I BMD_Form like subform

    -form1. POINT OF SALE. Emphasis_info.subformOptions::change - (JavaScript, client)-

    Switch (xfa.event.newText) {}

    case "Invisible":

    form1. POINT OF SALE. BMD_Form.presence = "invisible"; or

    break;

    'Hidden' of cases:

    form1. POINT OF SALE. BMD_Form.presence = 'hidden ';

    break;

    by default:

    form1. POINT OF SALE. BMD_Form.presence = "visible";

    break;

    }

    Thank you

    Viral

    The code works properly, please check how the pdf was saved? static/dynamic? Make sure that he recorded in dynamic pdf.

  • Dynamic action - show/hide area based on LOV that returns the ID

    Hi people,

    This should be simple, so someone who works with dynamic actions.

    I have a LOV based on query below:
    select OBJECT_ID, KOD 
      from x_data x;
    
    retuns:
       ID          KOD
    ----------------------------
        492961 BMW
        492964 VOLVO
        492960 MERCEDES
        492963 VOLKSWAGEN
        492959 SKODA
    Agenda: P200_KOD is based on LOV that displays KOD and returns the ID.

    On my page, I have also 1 region called TEST_REGION.

    I want to put in place a testament of shich dynamic action SHOW/HIDE a TEST_REGION based on the value selected in the order of the day: P200_KOD (LOV). Region should be shown if displayed (KOD) selected ID value begins with '% V '.
    By other words, if following query returns any folder, then the SHOW, HIDE it on the other:
       select *
        from x_data x
      where x.kod like 'V%'
         and x.object_id = :P200_KOD;
    How can I define a condition of dynamic action fires, for article: P200_KOD?

    Thank you
    Tomas

    Hello

    One way:

    Create an advanced dynamic action.
    Name: Region to hide
    Event: change
    Selection type: item (s)
    Items (s): P200_KOD
    Condition: Expression of JavaScript
    Value:

    $(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"
    

    Action: hide
    Fire on the Page loading: true
    Hide all items on the page on the same line: No.
    Action of false: show
    Fire on the Page loading: true
    Display all items in the page on the same line: No.
    Selection type: region
    Region: TEST_REGION

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • LiveCycle Form - box needs to show/hide images

    My box is called Ucheck.  The image is named UStamp.  I need the box to activate the visible image.

    I have read other responses to forum and found this example:

    showHide = event.target.isBoxChecked var (0)? display.visible:display.hidden;


    this.getField("Text036").display = showHide;

    However, when I have the script above in my form (changinging the (getField to "Ustamp") on LiveCycle, it gives me this answer)

    Script failed (language formcalc; context is)

    xfa form [0] [0]. U check [0]. #subform [0]. Ucheck [0]

    script = var showHide =

    event.target.isBoxChecked [0]? display.visible:display.hidden;

    this.getField("Ustamp").display = show - hide

    : Error syntax near token '? "on line 1, column 44.

    When I take the '? ', he said: he doesn't like something else on the script.

    I don't know ANYTHING about Javascript, so do not have the slightest idea how to debug this.  I don't program in Access, but know not true either VB.

    Thank you for your help...

    Do you have, you save the form as dynamic... in the dialog box save as file make sure you that you choose a dynamic PDF as type.

    Paul

  • Show / hide the DropDownList selection Pages

    I'm trying to show / hide the last page of an audit report according to which city is selected in the drop-down list.

    The code I use is:

    If

    ('4' == xfa.event.newText)

    {

    Page7.presence

    = 'visible ';

    }

    Page 7 has the value "hidden" as I will only show / selected print if some cities are (Bundaberg being one of them)

    The drop-down list has been fixed values then '4' = Bundaberg.   The script is on a change event.

    Can anyone help please this code does not work.

    Thank you.

    Jenny

    Ensure that the form is saved as "dynamic".

    N.

  • Help to display and hide subforms

    I saw the other discussions on this issue and I even downloaded a few examples, but I can't seem to make my form to work with the display and hide subforms. It seems I'm missing something very basic, but I don't know what it is. I worked on it for a few days and now it's time to see if someone can help me with this problem.

    I have a form that contains a subform in it called SendAmt900. I want the subform to hide when the form is called. If someone clicks the check box send amount more than $900, it should show the SendAmt900 subform. I enclose my form and I hope someone can help me with this.

    Hello

    "" "You're almost there. '" The only step is to save the form as XML dynamic. Once you have that does this will work OK.

    You can change the backup script changes preferably in the file / form properties / defaults auto manual.

    Good luck

    Niall

  • DW: Show-hide layers

    Hey, I am having two problems with behavior show - hide layers in Dreamweaver and I was wondering if anyone else has had the same problems and has a solution.

    My test page is http://www.petermcphee.com/dreamweaver/popup-layer.html

    (1) what I would like is to show the layer when the link is hovered over, which works very well. However, I also want the layer remains visible when the mouse passes over the layer and disappear when the mouse leaves the layer.

    I googled for a while and found some tutorials that deal with show/hide layers, but they hide the layers once the mouse leaves the original link, not the layer.

    (2) in addition, the site I want to apply this behavior to a an auto centering wrapper, box, so I would layer to the right of the pop-up window under the link every time without converting them the entire site Absolute positioning. As it is now, the popup appears in different places depending on the width is my browser.

    Is this possible with the current functionality of DW?

    Thank you very much!

    Peter.

    > 1) what I would like is to show the layer when the link is hovered over,
    > who
    > works very well. However, I also want the layer to be visible while the
    > mouse is
    > over-the-top and disappear when the mouse leaves the layer.

    When you view the layer, also show an underlying layer that contains a
    GIF image transparent who is the subject of more large/more grand than the layer 10px you
    See the property. Apply a layer of skin behavior to the GIF image which hides both the
    you have just showed and the underlying layer of the layers. Skin mouseout/mouseouthandler()
    the original trigger event. Who is?

    (> 2) in addition, the site I want to apply this behavior to a car
    > centering
    > wrapper, box, so I would layer towards the good popup under the link
    > each
    > time without converting the entire site to absolute positioning. As it is
    > now,.
    > is the popup appears in different places depending on the width of my browser.

    -Change

    on this subject.


    -change

    on this subject.


    and this-

    on this subject.



    and see if that helps.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "petertyler" wrote in message
    News:f1a45m$7jv$1@forums. Macromedia.com...
    > Hey, I? m in both problems with the behavior show - hide layers in
    > Dreamweaver
    > and I was wondering if anyone else has had the same problems and has a
    > solution.
    >
    > My test page is http://www.petermcphee.com/dreamweaver/popup-layer.html
    >
    > 1) what I would like is to show the layer when the link is hovered over,
    > who
    > works very well. However, I also want the layer to be visible while the
    > mouse is
    > over-the-top and disappear when the mouse leaves the layer.
    >
    > I googled for a while and found some tutorials that deal with
    > show/hide
    > layers but they hide the layers once the mouse leaves the original link.
    > not
    > layer.
    >
    (> 2) in addition, the site I want to apply this behavior to a car
    > centering

    > wrapper, box, so I would layer towards the good popup under the link
    > each
    > time without converting the entire site to absolute positioning. As it is
    > now,.
    > is the popup appears in different places depending on the width of my browser.
    >
    > Is still possible with the current feature of DW?
    >
    > Thank you very much!
    >
    > Peter.
    >

  • I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    Is attached a screenshot of my screen with the context menu to show/hide tabs. I want to delete some of them and let others. Please help me to know how. Thank you!

    Hmm, maybe this "one-time" imported into the new preference? Try this:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the cust and make a pause so that the list is filtered

    (3) double-click the preference of browser.uiCustomization.state and the content must be highlighted in a small dialog box.

    (4) copy the whole line and paste it into Notepad and save it as a backup.

    (5) in Firefox, click on the button '3-bar' menu > developer > Notepad. Remove the comment that appears and paste data preferably, that must appear on a long line. Click on the "Pretty Print" button to make it more readable.

    So I hope that you can spot the extra toolbars and change them out, taking care to preserve the commas between the elements.

    I don't have the extra toolbars in mine, but I copied and pasted back this spaced format and Firefox was able to handle it well. I went into customize and moved a button, and when I left, Firefox has rewritten the preference set as a single line. Assuming that yours works fine, then you can get rid of the backup from step (4).

Maybe you are looking for