Difference between revisions of "Prefill Form Fields"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 1: Line 1:
By encoding Form data in a URL, you can display a [[Form]] for a registered platform user that has select fields pre-filled with default data.
By encoding Form data in a URL, you can take a registered platform user to a [[Form]] that has select fields pre-filled with default data.


;Syntax:
;Syntax:
Line 6: Line 6:


where:
where:
:* ''<tt>domain</tt>'' - The domain used to access the platform
:* ''<tt>domain</tt>'' - The domain used to access the platform.
:* ''<tt>appID</tt>'' - The application ID, found in the [[Applications]] page
:* ''<tt>appID</tt>'' - The application ID, found in the [[Applications]] page.
:* ''<tt>objectName</tt>'' -  
:* ''<tt>objectName</tt>'' - The name of the [[Object]].
:* ''<tt>formTitle</tt>'' -  
:* ''<tt>formTitle</tt>'' - The name of the [[Form]].
:* ''<tt>fieldName</tt>'' -  
:* ''<tt>fieldName</tt>'' - The name of a object [[Field]] that is displayed in the form.
:* ''<tt>value</tt>'' -  
:* ''<tt>value</tt>'' - The value to pre-fill.


;Considerations:
;Considerations:

Revision as of 00:52, 30 July 2013

By encoding Form data in a URL, you can take a registered platform user to a Form that has select fields pre-filled with default data.

Syntax

https://domain/networking/servicedesk/index.jsp?applicationId=appID#_objectName/new
      /_form_title=formTitle/fieldName=value/...

where:

  • domain - The domain used to access the platform.
  • appID - The application ID, found in the Applications page.
  • objectName - The name of the Object.
  • formTitle - The name of the Form.
  • fieldName - The name of a object Field that is displayed in the form.
  • value - The value to pre-fill.
Considerations
  • For all parameter values, use "+" instead of a space.
    Example: My Applicationbecomes: My+Application
  • Parameters must be specified in the order shown, separated by a slash ("/")
  • If a data value includes a "/", encode it using %2F.
    Example: either/or becomes: either%2For
Supported Fields
  • BOOLEAN (value should be either 1 or 0 )
  • CURRENCY
  • DOUBLE
  • GLOBAL_PICK_LIST
  • NUMBER
  • PERCENT
  • PHONE
  • PICK_LIST
  • RADIO_BUTTON
  • TEXT_FIELD
  • TEXT_AREA
  • TIME