Workflow Soluiton

 View Only
  • 1.  Pre-populating fields in a form start project

    Posted Aug 31, 2010 07:50 PM

    Does anyone know if it is possible to pass in parameters to a form start project in the url and have it pre-populate form fields? For example, passing in a title or ticket number and the data will be displayed after the form has loaded.


  • 2.  RE: Pre-populating fields in a form start project
    Best Answer

    Posted Sep 01, 2010 08:41 AM
    Hey Arya,

    I not only know this is possible, I know that you have a project with an example.  To achieve this, you will need to set your project to use HTTP POST, add the expected input variables, and call the URL with additional arguments.

    To enable HTTP POST, you will want to add the following line towards the top of the web.config file:

    <configuration>
        <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
                <add name="HttpPost"/>
            </protocols>
        </webServices>
        </system.web>
    </configuration>

    Then, once the input variables are configured on your project, you will now have to modify the URL that you are passing to access the forms project.  For example, if the two input variables were SomeTitle and TicketNum, the URL would be something like:

    http://servername/projectname/composer.aspx?SomeTitle=stuff&TicketNum=777

    Let me know if you can't get this to work.

    -Aaron


  • 3.  RE: Pre-populating fields in a form start project

    Posted Sep 02, 2010 05:54 PM

    Thanks Aaron,

    I knew we did it for a web service workflow but didn't know if it would work for a form start. I forgot to add that HTTP POST into the web.config file but got it working now.


  • 4.  RE: Pre-populating fields in a form start project

    Posted Sep 12, 2010 02:11 PM

    Hi,


    I'm trying to do this exact thing, I'm a bit stuck after editing the web.config.

    How do I setup the input variables?


    Thanks

    Chris



  • 5.  RE: Pre-populating fields in a form start project

    Posted Sep 12, 2010 02:25 PM

    I've managed to find the input variables tab. I no longer require any assistance.


    Thanks.