Skip to content

mysociety/bods-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prototype of a form for collecting BODS-compliant data, using the MoJ Form Builder tool

This form was an early prototype of collecting BODS-compliant beneficial ownership data at the point that a supplier might be registering with a local or national government procurement platform.

We used the Ministry of Justice’s form builder tool to help us quickly put together a fully-functional prototype.

This Git repository contains all of the configuration for the prototype form.

How to get this running locally

  1. Install the MoJ Form Builder Editor Console. Currently this appears to be Mac-only.

  2. Open the Form Builder Editor Console app, and select “Add an existing form” from the navigation bar.

  3. Paste this repository’s URL into the text input:

    https://github.com/mysociety/bods-test
    
  4. Press "Add the form", and the Editor Console will create a local clone of the form into ~/Documents/formbuilder/forms.

  5. You can now launch the Editor UI for the form by pressing the “Start” link next to the form’s name.

If you don’t want to use the Editor Console, or you’re using a platform that isn’t supported by the Editor Console app, then you might be able to get the form running by installing and configuring the underlying fb-editor-node and fb-runner-node libraries on their own.

How to use the editor

Press the “Start” link next to the bods-test form, and the form-builder editor interface will open in your browser.

Form Builder Editor Console

At a fundamental level, the form is separated into ‘Pages’ that follow on from one another.

Pages displayed in the editor

But if you “Enable steps” on a page, then you’ll be able to add new pages as follow-on steps from that parent page, and you’ll be able to show those sub-steps conditionally, based on answers given earlier in the form.

Enabling steps on a page

You can add or edit the steps that follow on from a particular page, using the “Step settings” dropdown menu.

Editing steps for a page

You can use the “Run form” link in the top right corner, to try the form out.

Running the form

How to commit and push changes to the form

Although the Form Builder Editor Console uses Git to import pre-existing forms, it doesn’t automatically commit changes to the form as you edit it.

If you want to commit your changes (perhaps to share them with your colleagues), you can commit from inside the Git repository, as you would any other repository. Eg:

cd ~/Documents/formbuilder/forms/bods-test
git add .
git commit

At this point, since the Editor Console first cloned the repository with a https URL, you’ll probably want to add your own SSH upstream URL, so you can push without fiddling with HTTP authentication:

git remote add upstream git@github.com:mysociety/bods-test.git
git push upstream HEAD