Hidden subforms when form is opened

I am having a problem with hidden subforms. I have subforms that are orginally hidden, and become visible when an item in a drop down list is selected. When I save the form, and re-open it, the subforms are hidden again. The only way to make them visible again is to manually re-selct the item on the drop down list.
I have the following script for them:
form1.SubFormPage1.Information.Row5.DropDownList2::exit - (FormCalc, client)
form1.SubFormPage1.Information.Row6::initialize - (FormCalc, client)
Information.Row6.presence = "hidden" ;
and
if (DropDownList2.rawValue == "Aircraft Operation" or DropDownList2.rawValue == "Aircraft Maintenance") then;
Row6.presence = "visible" ;
else
Row6.presence = "hidden" ;
endif
I know that my issue is that I have the row "hidden" in initialize, but when I don't have that line of script, the subform is always visible.
Hope that makes sense.
Any help would be greatly appreciated!
 Leslie

1. Change to subform presence  is hidden . (always . )
2. While initializing the subform just check wheathere the required data is selected from the list box or not .
3. If the value is selected then it should be visible . otherwise it should be hiddden .
the above 2 and 3 is missing in the code .
Add the code in theinitaialize of subform whatever you written in the list box .
like same as
if (DropDownList2.rawValue == "Aircraft Operation" or DropDownList2.rawValue == "Aircraft Maintenance") then;
Row6.presence = "visible" ;
else
Row6.presence = "hidden" ;
endif
Now while openeing the PDF it will check the above condition and if its selected it will be visible otherwise it will be hide .
Regards,
Dhiyan

Similar Messages

  • Hiding subform when form is opened

    I have the following javascript associated with a checkbox and a subform:
    form1.SHCognitionCheckBox::change - (JavaScript, client)if 
    (this.rawValue == 1)  CognitionBehaviorSubformCheckBoxes.presence
    = "visible";
    else  CognitionBehaviorSubformCheckBoxes.presence= "hidden";
    My intention is to make the subform visible only when the checkbox is checked.
    If the checkbox is MANUALLY checked or unchecked, the subform becomes visisble or hidden, as expected.
    HOWEVER, whenever a previously saved form is initially opened, the subform is ALWAYS VISIBLE, regardless of whether the checkbox is checked or unchecked.
    Is there a way to cause the subform to be HIDDEN when the form is opened with the checkbox unchecked?
    I have tried different approaches: reversing the logic (checking the checkbox to make it hidden instead of visible), and trying different default values for the checkbox. No matter what I try, the subform is ALWAYS open when the form is opened.
    I can close the subform only by MANUALLY either unchecking the checkbox (if it is initially checked) or checking and unchecking the checkbox (if it is initially unchecked).
    Thanks.

    I am having the same problem. I have subforms that are orginally "hidden", and become "visible" when an item in a drop down menu is selected. When I save the form, and re-open it, the subforms are hidden again.
    Did you find a solution?

  • Position cursor in text field when form is opened

    Another newbee question I'm afraid!
    I want to position the cursor in a text field when a user opens the form. I can't find a way to do it but I'm pretty sure it's straightforward!
    Also, can I remove fields from the tab order?
    Thanks (for your help and patience!)

    Hi,
    You would select the object that you want to receive focus and put the following in the docReady event.
    xfa.host.setFocus("this");
    The docReady event is a good one to use, because it only fires once.
    The tab order can be set in the Tab Order tab. Depending on the version of LC Designer that you have, the flexibility will vary. However I would do this as a last step, as any changes can throw the tab order out of sequence.
    Note that tab order is greatly affected by the relevant x/y coordinates of objects and where objects are in separate subforms.
    Hope this helps,
    Niall

  • Creating a date field that autogenerates when form is opened but the date is fixed upon signing.

    Hi,
    I have been creating a series of PDF forms on Adobe XI Pro that are designed to be filled in using Adobe Reader (hence are saved as Adobe Reader Extended). Once the form is complete there are signature fields that the user digitally signs which then deactivates specific form fields from further editing. Alongside the signature field I have got a date field which, at the moment, is using JavaScript to auto-generate the current date upon opening. However, the issue I am having is that I want this date field to be fixed when the form is signed, rather than updating again when the form is next opened. Is this possible?
    The document JavaScript that I am currently using to generate the date is as follows:
    this.getField("PR_Date1").value = util.printd("dd/mmm/yyyy", new Date());
    But obviously this is independent of the date field.
    I am very new to Adobe in general so I don't have much of an idea about how to go about doing this. Could somebody please help me to do this if it is possible?
    Thank you
    KC

    Hélène-
    Thanks for the detail regarding validation script, but I still am having a problem with it.
    I have tried what you told me (remove reset the value) the popup no longer appears when the form is opened. But the validation does not seen to be working. It is not working either in the validate or exit event. This is what I have now on that text field.
    ----- form1.#subform[0].Y::exit - (JavaScript, client) ---------------------------------------------
    //Verify year is current or year+1
    var today = new Date();
    var year = today.getFullYear();
    if (this.rawValue == year || this.rawValue == year+1)
    app.alert("Year is invalid.\n\nOnly current or next year is valid.");
    ----- form1.#subform[0].Y::validate - (JavaScript, client) -----------------------------------------
    //Final verification
    ScriptObject.ValidateField(event.target, this);
    This final verification script I have taken from the samples on the
    LiveCycle Developer Center (Validating field content in a form hosted in Adobe Acrobat).
    The alert only displays when 2007 or 2008 is entered. I am really confused now. I thought I had a handle on this with your explanation.
    I do not know where to go now. The Object Pallet is setup as:
    Field Tab
    Allow Plain Text Only and Limit Length are checked with a Max Chars: 4. Edit Pattern: 99999
    Value Tab
    Type: User Entered - Required
    Validation Pattern: 9999
    Validation Script Message is checked - in Message box Invalid Year.
    Binding Tab
    Default Binding: Normal
    Data Format: Plain Text
    I am hoping that you can explain what I have wrong.
    Thanks so much,
    Confused Nancy

  • Pop up appears when form is opened?

    I am new to JavaScript and I have the following script that I hope someone can help me with.
    I am using LiveCycle Designer 7.0 from Acrobat Professional. I am trying to validate the entry in a test field. I want to make sure that the four digit year is not less than the current year and can be a year in the future.
    My problem is when the form is opened in Reader the alert box pops up before the actual form. When I key in the field the validation seems to be working. What do I need to do to stop the alert from showing when the form is first opened?
    ----- form1.Alabama.Yr::validate - (JavaScript, client) -------------------
    var today = new Date();
    var year = today.getFullYear();
    if (this.rawValue === year || this.rawValue < year)
    app.alert("Year is not correct.");
    Yr.rawValue = null;
    Much thanks in advance.

    Hélène-
    Thanks for the detail regarding validation script, but I still am having a problem with it.
    I have tried what you told me (remove reset the value) the popup no longer appears when the form is opened. But the validation does not seen to be working. It is not working either in the validate or exit event. This is what I have now on that text field.
    ----- form1.#subform[0].Y::exit - (JavaScript, client) ---------------------------------------------
    //Verify year is current or year+1
    var today = new Date();
    var year = today.getFullYear();
    if (this.rawValue == year || this.rawValue == year+1)
    app.alert("Year is invalid.\n\nOnly current or next year is valid.");
    ----- form1.#subform[0].Y::validate - (JavaScript, client) -----------------------------------------
    //Final verification
    ScriptObject.ValidateField(event.target, this);
    This final verification script I have taken from the samples on the
    LiveCycle Developer Center (Validating field content in a form hosted in Adobe Acrobat).
    The alert only displays when 2007 or 2008 is entered. I am really confused now. I thought I had a handle on this with your explanation.
    I do not know where to go now. The Object Pallet is setup as:
    Field Tab
    Allow Plain Text Only and Limit Length are checked with a Max Chars: 4. Edit Pattern: 99999
    Value Tab
    Type: User Entered - Required
    Validation Pattern: 9999
    Validation Script Message is checked - in Message box Invalid Year.
    Binding Tab
    Default Binding: Normal
    Data Format: Plain Text
    I am hoping that you can explain what I have wrong.
    Thanks so much,
    Confused Nancy

  • Show stacked canvas when form is opened

    Hi,
    I'm working with forms 6i. My form has one multi-record block. Due to the amount of fields that need to be shown we split the block across 2 canvases, the first fields are shown in the primary canvas and next to it is something like an overflow, a stacked scrollable canvas.
    The form is opened in query mode. In the beginning we only see the items on the primary canvas. Only after the user has executed his query and navigates (with tab) to the first item on the stacked canvas this one is shown. From that moment on the stacked canvas stays visible.
    I want to change this behavior as such that the stacked canvas is visible all the time.
    I tried to solve this using show_view in the when-new-form-instance trigger but the result is not what it should be. The view is shown but not in the same way as you would see it when you properly navigate to it. The alignment is totally out of control.
    Any ideas, suggestions, are mostly appreciated.
    Kris

    Steve,
    To maybe make things a bit more strange then they're already.
      GO_ITEM('DEELNEMERS.DROOMPLOEG'); -- Item in stacked canvas
      SYNCHRONIZE;
      PAUSE;
      GO_ITEM('DEELNEMERS.CODE'); -- First item (on primary canvas)It works with above code but not without the pause.
    I'm really confused here :-),
    Kris

  • Different messages on COMMIT_FORM ,when form is opened from another form

    hi,
    problem is when open form from another form. After change some data and execute COMMIT_FORM, message is : No changes to apply.
    Interesting is that when exit and open form again, changes is SAVED !?.
    If open that form directly, message is that like should be ( Transaction completed...).
    Has anyone idea where is problem?

    Hello,
    While calling the form try with 'DO_REPLACE' option.
    Thank U.

  • Auto-Create a form number when form is opened.

    Hello,
    I was wondering if I can auto-create a number to populate in sequence every time I open the form?  For example, Microsoft Word, Excel auto populates the date when the form is open.  I'd like the same functionality when creating a form to auto-populate a number counter each time the form is opened.
    Any ideas?

    That depends on how the PDF is being created and served to users.
    If you are simply putting an interactive PDF form on a file share or a web site, you could attach script to a form event to generate a unique id but it will not be a sequential number. To create a sequentially unique id you will have to call a server process which maintains the sequential number through a call to a persistent store (a database, XML file, flat file, etcetera).
    If you are generating the PDF form using LiveCycle (server solution), the server process used for generating the form could call a process as described above.
    Steve

  • Check for latest revision when form is opened

    I'm developing a form for work that will be distributed to many people and I won't always know who has the form.  My plan is to post the form to a website for users to download.  Is there any way to check the website for for the latest revision when the form is open??  In this case I'm thinking when a user opens the form it will check the website, and if a newer version is available I will have a message box stating a new form is available and give a URL.  How would I script something like this?

    Hi shippy84,
    Sounds like you will need a webservice.  Maybe this link will help http://blogs.adobe.com/formfeed/2009/08/version_control_for_forms_and.html
    Good luck
    Bruce

  • Ribbon not showing when form is opened

    I have a 2007 application.  In it I have create the Usys... table and created 3 ribbons.
    1- Hide everything
    2- Ribbon for my forms
    3- Ribbon for my reports
    I set my db option to startup with Ribbon 1, and this works.  I associated ribbon 2, in my form's properties "Robbon Name", but when the form open, the ribbon does not display?  Anyone have any ideas?
    I can set any ribbon as my startup ribbon, they all appear to work.  The issue is that it won't switch to ribbon 2 when the form is opened.  When a report is opened however, ribbon 3 does appear.  Why won't ribbon 2 appear when my form opens? 
    I have validated my XML using the Custom UI Editor & all 3 ribbons validate (Custom UI XML is well formed!).
    Now I know ribbon 3 works, but if I associate that ribbon to the form, it will not display either.  So it appear that it isn't because of the ribbon, but something else?
    Another question while we are on the subject of ribbons.  I litterally copy/pasted ribbon 2  to create ribbon 3 and then edited it as required, but some tabs, groups,... have the same names between the ribbons, can this be an issue or since they
    start for scratch = true, it will have no impact?
    Thank you,
    Question.Boy

    Hi,
    the two best sites (in my opinion) to learn about ribbons:
    www.accessribbon.de
    www.andypope.info
    and indispensable:
    http://soltechs.net/CustomUI/AllGal.asp
    I use the technique of just one ribbon (one XML file) edited with notepad ++ and the invalidate method conjungate with Application.CurrentDb.Properties("ribbonXXX").Value  to change the tabs.
    See the start of my xml (all I'vd learn so far...)
    <customUI
    xmlns="http://schemas.microsoft.com/office/2006/01/customui"
    onLoad="XXX_onLoad">
    <commands >
    <command
    enabled="false"
    idMso="ApplicationOptionsDialog"/>
    <command
    enabled="false"
    idMso="Help"/>
    </commands >
    <ribbon startFromScratch="true" >
    <officeMenu>
    <button idMso="FileOpenDatabase" visible="false" />
    <button idMso="FileCloseDatabase" visible="false" />
    <button idMso="FileNewDatabase" visible="false" />
    <splitButton idMso="FileSaveAsMenuAccess" visible="false" />
    </officeMenu>
    <qat>
    </qat>
    <tabs >
    <!-- _____________________________________________________________ TABS PARA APLICAÇÃO XXX -->
    <tab
    id="tb_XXX"
    getLabel="CB_getLabel" getVisible="CB_getVisible">
    <group
    id="gp_FICHEIROS_XXX"
    getLabel="CB_getLabel">
    <button
    id="btn_CRIAR_FICHEIRO_XXX"
    getEnabled="CB_getEnabled" getImage="CB_getImage" getLabel="CB_getLabel"
    getScreentip="CB_getScreentip" size="large" getSupertip="CB_getSupertip" onAction="CB_onAction"/>
    </group >
    </tab >
    </tabs >
    </ribbon >
    </customUI >
    then I have those subs CB_getEnabled, CB_getImage, CB_getScreentip in a module call AllCallbacks...
    Read this just like an example or hints, not the best way to go. 
    HTH
    João

  • Display Item not showing Text when form is opened in Forms 6i

    Hi,
    I am using Oracle Forms 6i & I have taken DisplayItem control on a canvas and want to show some text over that e.g., "Your Name". For that I set 'Initial Value' property of that control in Property Palette to "Your Name". But I am not getting any such text message when I run the form nor it is coming at form design time. Can anyone please let me know where I am missing and how to display text in forms using DisplayItem control?
    Can you also suggest from where to learn these basic things about Oracle Forms 6i?
    Thanks in advance.

    bootstrap escribió:
    Can I initialize this object using Property Palette? If not why so?
    can you please tell how to use go_block & where to call this method?
    Yes, just as you did with the initial value property, but you have to "initialize" the record in that block. Navigating in runtime to the block is a way to achieve that, so you have to put the "focus" in the block with built-in GO_BLOCK . For example, in the W-N-F-I trigger.
    Another way to put the focus there, as indrabudiantho sugested, is dragging the block to the topmost place in the list of block in design time. Thus, when you enter your form in runtime, the focus will go to the first navigable item in the first block as defined at design time.
    About the resource docs, I think there was a "Oracle forms developer guide" bundled in paperback with a quite old version of the product which wasn't too bad. Not the "forms builder reference" , which is more or less the online forms help, but the guide. Also, there must be commercial books about forms & reports.

  • Issue with hidden subforms and fields becoming visible when scrolling

    Hi all:
    Was testing an XFA form on a 13" macbook air when I noticed something odd: Page 1 (which had a presence of "hidden") became visible on-screen when scrolling down Page 2, which was set to visible.  For lack of a better description, Page 1 "bled through" the currently visible page but then disappeared after the scrolling action was complete.
    Here was the sequence:
    - FYI: 4 pages in the form; only one page is visible at a time. When the document opens, Page 1 is visible and all the others are hidden.
    - Opened on a MAC with Reader XI
    - Answered questions on Page 1 and clicked a "next" button which set Page1 to hidden and Page 2 to visible;
    - I zoomed in for a better view on Page 2 (again Pages 1, 3,4 are all "hidden" at this point)
    - When I placed two-fingers on the track pad and scrolled down, the bottom of hidden PAGE 1 was revealed during the scroll, not the bottom of Page 2.
    - When I lifted my fingers OFF the track pad, the bottom portion of Page 1 that became visible while scrolling disappeared and was replaced by the bottom of Page 2.
    Same thing happened with pages 3 & 4.  If I zoom in and scroll up, down, left or right using the track pad, Page 1 (even though it is set to hidden) "bleeds through" during the scroll and then disappears when fingers are lifted off the track pad.
    I've done some testing and it happens on Macs running Reader.  Mac with Acrobat and PCs with either Acrobat or Reader appear to be fine but not finished testing.
    Made a simple working example.  Again, be sure to open on a Mac with Reader if you want to see it happen. https://www.dropbox.com/s/jnf4uxntuzvrk7p/bleed%20through%20tests.pdf?dl=0
    Has anyone else experienced this?? How can we stop it from happening as it is extremely confusing to the end-user to have two different pages mixing together when scrolling.
    Thanks much.
    Brian

    Just reaching out to the community again on this.  Any thoughts or similar experiences?
    FYI, I tested the new Reader DC for this issue yesterday and it's still there.  Hidden pages still bleed through.

  • Acrobat 9.4.4 Pro Crashes When Attempting to Open PDF Form

    OS: Win XP Pro SP3
    The  machine worked fine until Acrobat updated itself to 9.4.4 then the  problem started.  Crashes when attempting to open most PDF Forms - even  when freshly rebooted or repaired.  I originally thought it was related  to a browser or Outlook 2007, but later found that it does it under all  circumstances.  It is my General Manager's machine having the problem,  so I need to get this resolved ASAP.  Your experience and assistance is  much appreciated.
    My temporary fix was to uninstall 9.4.4 - Install 9.0  and turn off automatic updates - worked beautifully.  It would be nice to get to the bottom of this so we can update our CS4 products.
    Another user reported this problem on May 16, 2011 and no one has replied to his post.
    Thanks in advance.

    Please repost in the Acrobat Windows forum.
    http://forums.adobe.com/community/acrobat/acrobat_windows

  • I have a fillable form that we send to contractors - when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a

    when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a total loss as it works when viewing from the computer. I am assuming it is a setting or maybe we need to save it a special way?

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • Regarding UCF_AcroForm error displayed when trying to open the pdf form

    Hi,
         Iam receiving the pop up when trying to open the pdf form.The Error is Server Error Class: UCF_AcroForm Method: Error.The Error displayed in some system and in some other system the form is working fine.The Form is created using the Designer 8.0.The form is working fine in reader 8.0.Is there any problem in the reader version.Is there any solution for this problem please provide.
    Thanks and Regards,
    SatheshKumar R

    Sathesh,
    Similar issue has been reported at SDN so searching would have helped you. See below threads for solutions:-
    UCF_AcroForm error
    MSS UCF_AcroForm error displayed when trying to display form in PCR
    Chintan

Maybe you are looking for

  • Error when displaying xellerate form

    Hello, I have the following error when displaying the form of any xellerate users : ERROR,03 May 2011 10:40:56,273,[XELLERATE.APIS],Class/Method: tcFormDefinitionOperationsBean/getFormFieldPropertyValue encounter some problems: Property 'Column Names

  • Customer Deletion via RFC

    We would like to delete a customer (set deletion flag) via RFC. The problem is that the BAPI_CUSTOMER_DELETE calls screens which means that it cannot be called. We want to avoid doing database updates on KNA1-LOEVM because we want such deletions reco

  • Yosemite Download problem

    Had a power cut (outage) whilst downloading Yosemite. Now stuck in an endless loop that keeps sending me back to the Purchase page in the App store where it says an error occurred every time I click Download. Help! How can I delete/reset everything a

  • Quartz extreme video card message

    have final cut installed on my new macbook pro. It worked fine till I installed the new snow leopard. Now when I try to open final cut I get the message I need to install a quartz extreme video card. HELP

  • CMS.exe is not automatically started

    Dear Experts, I have BOE installed in my VMware. Os is windows server 2003, DB is Mysql. The BOE can work fine before, but after one day, I cannot logon infoview and CMS.I checked the CCM every services are running. But when i check the task manager,