Admin Tasks
Adding a Team Member to be an Admin
Add the team members digital email address to the correct list in the config, raise a PR etc.
- MOJ_FORMS_DEVS - members of the tech team.
- MOJ_FORMS_ADMIN - members of the wider team who need admin access
- MOJ_FORMS_TEAM - members of the whole team who do not need Admin access
Transferring ownership of a form
- Go to the environment where the form lives - the URL should indicate whether it’s in the live or test environment
- Admin > Services - search bar doesn’t work but list is in alphabetical order
- Select form > form details
- Search Metadata - we’re changing the created by value
- Search for “created_by” value which uses user ID
- Open another tab to find the user ID
- If the user has a @digital.justice and @justice account, check which account to use
- Copy and check last few digits for reference
- Admin > Services > Metadata > Select edit button
- Replace the ‘created_by’ user id with the one that you have just copied and hit save
- Notification in #form-builder-alert slack channel
- Add details via comment for slack so the team knows it was a planned change
Tip: might be helpful to copy full metadata into a googledoc temporarily so you can revert back to original meta data if needed.
Unpublishing a form
- Check where the uptime check exists, Admin > Uptime Checks if it’s Form Builder form it’s likely to not be in the Admin dashboard and may be managed by Cloud Platform.
- If it’s an older form a dev will need to be involved to create a pull request to Cloud Platform to remove the check.
- If it’s visible in the Publish services then select the delete button
- Add a comment in the #form-builder-alerts channel to the Pingdom alert so the wider team are aware of the changes you’re making.
- Admin > Services > Select Form in alphabetical order
- Select Unpublish button for both live and test environments if applicable
- Copy Service ID - top right-hand corner
- Admin > Publish Services search with Service ID to check status of form has changed to unpublished
- Update #form-builder-alerts channel for notification and add comment on the changes made
Renaming a form
This is quite involved and a Tech task - raise a support request ticket on the backlog.
Forms that are ONLY published in test
- Unpublish form from test
- Change the
service_name
in the metadata - Republish the form (with the new URL)
Forms that are published in Production
- Warn the user that this will change the URL
- Duplicate the form with the new service name (see below)
- Copy over settings and publish
- Unpublish and remove old form
Note: There is a backlog ticket to separate the slug from the service name.
Duplicating a form
- Create a new form with the new name you want
- In the metadata find and copy
service_id
andservice_name
and save somewhere - Open the original form and copy all the latest metadata
- Back to the new form, replace the metadata with the original metadata DO NOT SAVE yet
- Replace the
service_id
with the newservice_id
- Replace the
service_name
with the newservice_name
- Save the metadata
- Check to make sure everything works
Setting a form locale to welsh (cy)
This assumes there is already an existing form, either newly created or duplicated.
- Find the form in the editor admin and edit it
- Replace in its metadata
"locale": "en"
with"locale": "cy"
, no need to save yet - Search and replace in the metadata all instances of
(optional)
with(dewisol)
- Save the metadata and return to the editor to check the form shows welsh copy
- From this point onwards the form owner will need to translate all questions, hints, etc.
- Form owner will also need to translate any editable templates like emails or footer pages
- Once all is done form needs to be republished
Setting API endpoint and url
- In the Admin section, find the form in Services List
- Edit the form to display his version and metadata
- Click on the button API settings
- Set SERVICE_OUTPUT_JSON_ENDPOINT and SERVICE_OUTPUT_JSON_KEY for test or live environment
- Save
This page was last reviewed on 5 July 2023.
It needs to be reviewed again on 5 October 2023
.
This page was set to be reviewed before 5 October 2023.
This might mean the content is out of date.