Pre-populated Web Forms

Setting Parameters

In order for web forms to be able to pre-populate fields you must set those fields to have a parameter.  In the Management Console, open the form designer and select the web form you want to have pre-populated information on.  In the Fields / Layouts tab you can select which form fields you will want to pre-populate.  In the example below you have selected PO Number from the form field, and are looking at the properties to that field. If you scroll to the bottom of the properties box you will find the Query string Parameter section.

Expand that out and you get 3 options to fill out for pre-population to work.

  • Parameter Name - The name of your paramter
  • Pass Value on - Set to Yes if you want it the value in the field to be 'remembered' after an upload.
  • Read-only if parameter set- Makes the field Read-only and will not be able to be changed if set to yes.

In this example, we named the parameter po, set pass value on to yes, and read-only to no.

 

Fields with no parameter setting

Some fields can not be pre-populated, they are listed below.

  • Location
  • Organization
  • Model
  • MAC address
  • Serial
  • Cost
  • Cost Center
  • Vendor
  • Stockroom
  • Line item Number
  • Assignee2

Custom fields will have a Query String Parameter depending on the type of field it is.  Currency and any type of Integer setting will not have it.

Creating the URL

After you have set parameter names for the fields you want to pre-populate you will need to get the URL for that web form.  To do that you must go the forms page on the AssetTrack server, right click the link to the web form and copy the shortcut.

Once you have the URL copied you can paste it into a notepad to edit. Here is where you call out the parameters you gave to your fields using the & followed by the parameter, which is set equal to the value you want to be pre-populated (EX. &po=1234).  This is added to the end of the URL for the web form shown below.

You can then copy and paste the URL into your web browser. You will be prompted to log in to the AssetTrack server if you are not already logged in. Once logged in the form will display pre-popluated, shown below.