Single View Multiple FOrm Choices - InfoPath Dev
in

InfoPath Dev

Single View Multiple FOrm Choices

Last post 03-10-2005 01:52 AM by potpourri. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-09-2005 10:10 PM

    Single View Multiple FOrm Choices

    I have a situation:

    I'm creating a form with the following fields:
    --------------------------------------
    1. name: <text box>
    2. date lodged: <date picker>
    3. process type: <dropdown list>
    a) signup
    b) login
    c) purchase

    create form <submit button>
    --------------------------------------

    If user pick on "signup" from the dropdown list, there would appear an extra table layout at the botton of the submit button with fields specific to the signup process.
    Same situation with user picking "login", there would appear an extra table at the bottom with fields specific to the login.

    Trouble is, I'm having trouble in implementing this.
    I don't want to use XDocument.View.SwitchView in appearing fields specific to the subtype forms since it means I have to re-create another 3 views for all of this.

    Can you at least point out to me how to upload XML schema dynamically to a choice section depending on user choice from the drop down menu?

    thanks :D
  • 03-10-2005 12:07 AM In reply to

    Re: Single View Multiple FOrm Choices

    Create a bunch of sections, and use conditional visibility and rules to display them.
    Patrick Halstead
    Project Manager at Qdabra
  • 03-10-2005 01:52 AM In reply to

    Re: Single View Multiple FOrm Choices

    hey super thanks for the prompt reply :)

    I can understand the part of using diff sections and applying conditional formatting on them.
    but I absolutely have no idea as how to upload XML schema dynamically to a section.

    I can only know how to upload an XML file content dynamically to a drop down list like:

    ------------------------------------------------------------------
    var department = XDocument.DataObjects.Item("choice");
    department.Query();
    var departmentDOM = XDocument.GetDOM("choice");
    if (departmentDOM.childNodes.length > 0)
    {
    departmentDOM.removeChild( departmentDOM.childNodes.item(0));
    }

    if ( <condition> )
    department.QueryAdapter.FileURL = "choice.xml";

    department.Query();
    XDocument.View.ForceUpdate();
    ------------------------------------------------------------------

    Would this roughly be the same method?

    cheers :)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.