DCR Forms

DCR Forms

On March 22nd, 2016 we extended DCRGraphs.net to support forms. Any element on a form can be considered an event/activity of a DCR Graph. Thereby we enable forms to leverage powerful DCR Graphs rules, thereby minimizing the need of custom coding and development to support easy to use forms and user interfaces.

Patterns typically difficult to support in traditional forms systems includes the following which are easy to solve using DCR Forms:

  • A field cannot be filled out before another field is filled out – e.g. you must fill out startdate before filling out end-date
  • Once a field is filled out you must fill out other field – e.g. if startdate is filled out you must fillout end-date, i.e. end-date become a mandatory field if startdate is filled out
  • Once a field is filled out other fields are shown – e.g. if the user selects a checkbox “applied before” a textbox is shown where the user can fill out details about previous applications
Require sequence of fields

Condition
Using a Condition between two fields, you can force the sequence of the fields being filled out.
Require field to be mandatory once another field is fileld out

Response
Using a Response between two fields you can force one field to become mandatory once the first field is filled out.
Make field, or fields, visible, once fields are filled out/selected

Include
Using an Include relation you can force a field to become visible, once another field is filled out.

A combined form

A combined form defined in a DCR Graph is illustrated.

Combined DCR Form

You can “run” a DCR Form in DCRGraphs.net by selecting EditUsing Sequence Editor you can edit and preview the form

Once you fill out the first field the second is enabled<

DCR Form Sequence Editor

Second field is enabled once First Field is filled out

When startdate is entered Enddate is mandatory – so Close button is disabled

Image title

When you click checkbox Described is visible

Types of forms

Button

More info to come

Boolean

More info to come

Integer

More info to come

Money

More info to come

Float

More info to come

 

Slider field

The DCR Form Slider field allows for a adjustable slider in your form that can be adjusted by the user of the form.

The different options in the DCR Form and the slider option in the bottom

The configuration of the slider option in DCR Forms

Syntactic validation

The form as seen from the user
Fields such as integer, text and textboxes support syntactic validation such as length.

Integer
Data type Options
Integer
Validation options
Text
Validation options

More details and examples of DCR Forms to follow shortly.

An example

Please refer to this DCR graph for an example of a DCR Form. It is based on an application form from an existing customer but adjusted for general usage.

You can try out the form yourself from this link.

DCR Form Subscription

DCR Forms can be shared on a DCR Form server using the DCR Form Subscription sharing feature found under graph sharing in the options panel.

Once you click on the “Share Form Subscriptions” button you’ll be taken to a new page where you can maintain the form subscriptions.

You can create, modify and delete subsciptions. Creating a new subscription will present this form (actually also a DCR Form) where you can choose different sharing options:

You must enter a DCR Username and password used to retrieve the DCR Form from the DCR Form server. The Recipient supports different types of protocols used when submitting the form and sending it to the recipient:

  1. ECM – supporting a protocol developed by Exformatics where the form is posted using a SOAP call
  2. SMTP – sending the form and attachment as security email to the recpient
  3. Other – future protocols

In the SMTP protocol you specify recipient email address, check whether to use secure email (we believe you should always do this), the email subject and body. Finally you decide whether to include the form as a PDF document, the attachments uploaded, the data XML as well as the DCR Form xml.

RESTful API

DCR Form server supports a RESTful API which enables the user to clean up documents and folders after form is submitted.

URL: https://form.dcrgraphs.net/api/Document
Method: DELETE

Body:
To delete a particular file { url :’https://form.dcrgraphs.net/upload/9ec10313-29e1-4971-a2d8-1a7f6cb675aa/this is a test file.docx’ }

To delete a whole folder
{ token :’9ec10313-29e1-4971-a2d8-1a7f6cb675aa’ }

Opening a DCR Form from DCR Simulator or Open Case Manager

DCR Simulator and Open Case Manager can open a DCR Form. Read more about how this is done here.

Sidebar



Bitnami