← Documentation

Develop and test SharePoint forms outside production

Enterprise / Pro add-on

Most SharePoint list forms are changed where people use them: someone opens the live form, moves a field, adds a rule, saves, and hopes. Every half-finished change is visible to every user the moment it is saved, and a rule that goes wrong goes wrong on real items.

Modern DFFS lets you work the way the rest of your software does. Build and change the form in a DEV environment, test it in SIT and UAT, and move the finished, approved configuration to PRD in one step. Production only ever receives a form that has been tested, and every overwrite can be rolled back.

This guide explains the process, then walks through setting it up.

1. Why not build in production

  • Users see work in progress. A form is live the moment it is saved. A half-built section, a field you moved and meant to move back, or a rule that hides the wrong field all reach users immediately.
  • Mistakes land on real items. A Set field value rule with the wrong condition writes wrong values into items people are saving right now — and those values stay after you fix the rule.
  • Nobody signed off. The person asking for a change never saw it before it went live. Business owners should approve a form in UAT, not discover it in production.
  • Changes collide. Two people improving the same live form at the same time is how changes get lost.

Separate environments fix all four: changes happen where no user is working, they are tested before they move, and production is touched once, deliberately, by the person promoting.

2. The process

The chain has four stages. You can use all four or only the ones you need — DEV → PRD, or DEV → UAT → PRD, are both common.

StageWho works thereWhat happens
DEVForm buildersLayout, rules, Custom JS and CSS are built and changed. Form Tests are written and run here.
SITForm builders, ITSystem integration test: the form against flows, other lists, REST sources and anything else it connects to.
UATBusiness owners, key usersUser acceptance test: the people who asked for the change try it and approve it.
PRDEveryoneProduction. Receives only a configuration that has passed the stages before it. Nobody edits the form here.

Two tools work together:

  • Environment settings in the form configuration map the four stages to sites and lists. The form then knows which environment it is running in and shows it: a coloured pill in the configuration, and a DEV, SIT or UAT banner on the form itself so testers never mistake a test form for the real one.
  • The Modern DFFS Admin tool’s Promote config tab copies the configuration from one stage to the next. It checks that the destination list has the fields the form needs, and snapshots the destination’s existing configuration before overwriting it.

3. What you need

  • The right license. Environment settings and promotion are included in Enterprise, and available on Professional with the Modern DFFS Admin add-on. On other licenses the Environment settings panel opens read-only with a note saying so.
  • The Modern DFFS Admin web part on a page you can reach. It is a separate package — see Download and the Admin guide.
  • Manage Lists permission on the sites involved. The Admin tool checks it per site.
  • A list for each stage. You do not have to create them by hand: promotion offers to create a missing destination list (see step 7).

4. Choose a layout

Environments can be separate sites, or share one site and differ only by list name.

LayoutExampleGood for
Separate sites (recommended)/sites/Finance-DEV, /sites/Finance-UAT, /sites/Finance — each with a list called InvoicesFull isolation. Test data, permissions, flows and site settings never touch production, and lookups find each environment’s own lists. The usual choice when IT runs the process.
One site, suffixed lists/sites/Finance with InvoicesDEV, InvoicesUAT and Invoices (no suffix on PRD)Quick to set up, nothing new to provision. Works for a form that reads from no other list, or whose other lists follow the same naming. Test items live beside production ones, so keep an eye on views and permissions.

Use a separate site for each environment if the form reads from other lists. vLookups, dropdown lists and autocomplete search boxes find their list relative to the site the form runs on. On a shared site that is the same list in every environment, so a promoted PRD form reads the DEV lines — with no error to tell you. Environment settings warns when two environments share a site; see Lists this form reads from. If you do share a site, name the other lists the same way as the form’s list (Lines_DEV beside Orders_DEV): the Admin tool’s promotion then repoints them to the next environment’s lists.

Mixing is possible — DEV and SIT on one site, UAT and PRD on their own — with the same caveat for the environments that share a site.

5. Set up Environment settings

Do this once, on the form you are going to promote. Open the form’s configuration and choose Environment settings from the top-left menu. The panel has one row per stage: DEV environment, SIT environment, UAT environment and PRD environment.

FieldWhat to enter
Site URLThe site the stage lives on — the site only, not the list. Use current site fills in the site you are on. Leave a stage blank if you do not use it.
List nameOnly when the list is named differently between stages — the one-site layout above. Enter the list’s URL name (the name in the list’s address), not its display name; the two differ when a list has been renamed. Use current list fills in the right value for the list you are on. Leave it blank when the list has the same name everywhere, and on PRD when its list has no suffix.
Asset base URL (optional)Where this stage’s external scripts, stylesheets and images live — a CDN, an Azure blob container or a SharePoint folder. It fills the {assetUrl} token, so one configuration loads DEV’s files in DEV and production’s in PRD with no path edited on promotion. See Custom CSS for the token.

Under Apply these settings to, choose All forms for this list (new, edit and display) so the New, Edit and Display forms share the mapping. Only this form leaves the other two without it. Then save the configuration.

When the current site and list match one of the stages, the panel shows which one — for example This is the DEV environment for this configuration. If it shows nothing, check the URL and the list name.

What the environments look like

  • In the configuration, a small pill beside the version number shows the stage you are in: DEV, SIT, UAT or PRD, each in its own colour. A grey Environments pill means a mapping exists but the current site is not one of its stages — typically a copy of the form somewhere else. Click either pill to open the settings.
  • On the form, users in DEV, SIT and UAT see a coloured banner at the top: This form is running in the UAT environment. Production shows no banner, so a PRD form looks exactly like any other form. Forms opened in a vLookup dialog don’t get a banner of their own.

The environment is worked out each time from the site URL and list name — it is never stored. That is why the same configuration correctly reports DEV on the DEV list and UAT once it has been promoted to the UAT list.

Lists this form reads from

Promotion copies the configuration as it is. Every vLookup, dropdown list and autocomplete search box keeps the list reference it had in DEV, and whether that reference finds the right list in the next environment depends on how it is stored. A GUID never survives the copy, because the copied list gets a new one. A fixed URL into the DEV site keeps reading DEV in every environment. A relative reference — the current site, a list’s display name or /Lists/… path — finds the right list on another site, but on a shared site it finds the same list in every environment.

So the Environment settings panel checks the form as soon as an environment URL is entered, and again whenever the URLs change. Under Lists this form reads from it shows a summary, then one line for each vLookup and each dropdown list or autocomplete search box, named by the field’s display name:

ResultShown whenHow to fix it
Site by GUIDA vLookup on the current site without Use web relative URL and not the GUID as web identifier, or a dropdown or autocomplete whose Source web is a GUID.vLookup: turn the option on. Field: leave Source web empty for the current site, or build the address with a token, for example [[web:absoluteUrl]]/subsite.
List by GUIDA vLookup without Use list rootfolder and not GUID as list identifier, or a dropdown or autocomplete whose list is a GUID.vLookup: turn the option on. Field: give the list by its display name or its /Lists/… path.
Points at an environmentA fixed URL, or a REST source URL, inside one of the four environment sites. The line names the environment.Use a relative reference instead, so each environment reads its own list.
Same siteTwo environments share a site, and the reference is resolved relative to it.Use a separate site for each environment.
Shared site (information)A fixed URL outside every environment.Nothing — this is right for a shared source such as a central lookup list.

When two or more stages are given the same site URL, a separate warning at the top of the panel recommends separate sites.

  • Only the form you are configuring is checked. New, Edit and Display each have their own layout, so open Environment settings on each of them.
  • Values built with tokens are not checked, such as a list or web given as [[variable:…]], because they are only known when the form runs.
  • Repeating sections, related items and cross-list write are not checked. They store list references too, so check those by hand before you promote.

When you promote with the Admin tool, Promote config fixes most of these for you: it re-resolves GUIDs on the destination, moves fixed URLs from the source site to the destination site, and renames lists that follow the form list’s naming. It shows every change before it writes anything — see List references in the Admin tool guide. The check here is still worth a look: it shows the references while you build, and covers forms copied by other means.

6. Build and test in DEV

Make every change in DEV. Before promoting, prove that the form still does what it should:

  • Write Form Tests for the behaviour that matters — approving requires an approver, the cost centre fills in from the department. Tests are stored with the configuration, so they are promoted with it and can be run again in every stage.
  • Turn on running the tests before saving once they are reliable, so a change that breaks one is flagged before it is saved.
  • Try the real form, not only the preview: create, edit and display an item in the DEV list.

7. Promote to the next stage

In the Admin tool, open Promote config:

  1. Under Source, pick the DEV site and the list. A banner shows the environment the configuration is in and its full path, e.g. DEV → SIT → UAT → PRD.
  2. Under Destination, pick the stage. With Follow the configured flow, every later stage is offered, so you can go DEV → SIT, or straight to PRD when the stages in between aren’t used. The destination site and list are taken from Environment settings.
  3. The tool compares the source and destination lists. If the destination list doesn’t exist, Create list makes it — with the right URL name from the mapping and a suggested title such as Invoices UAT. If fields are missing, Add missing fields adds them; if choice options differ, Update choices to match source aligns them. Promotion stays blocked until the fields match.
  4. Review List references. The tool lists every vLookup, dropdown list and autocomplete search box that reads from another list, and what it will change so it reads the destination’s list. Correct a proposed list name if needed, and press Re-check references. A list that does not exist on the destination holds the promotion until you create it. More about list references.
  5. Choose Promote to UAT (or whichever stage) and confirm. The New, Edit and Display configurations are copied together, and the result tells you how many were added, updated or unchanged.

A new destination list needs DFFS switched on once. Promotion copies the configuration; it does not activate DFFS on the destination list. After the first promotion to a new list, use the Admin tool’s Activate DFFS tab to turn it on. Later promotions to the same list need nothing extra.

What moves, and what doesn’t

PromotedNot promoted
Form layout, rules, Custom JS, Custom CSS, Form Tests, the form’s settings — including Environment settings themselves, so the chain carries on at the next stageList items. Test data entered in DEV or UAT stays there.
DFFS activation on the destination list (see above).
Files outside the configuration — scripts and stylesheets on a CDN or in a folder. Use {assetUrl} so each stage loads its own.

Repeat for each stage: SIT → UAT once integration testing passes, UAT → PRD once the business owner approves.

8. Roll back

Every promotion snapshots the destination’s existing configuration before it overwrites it. If a promotion to PRD turns out to be wrong, open Browse configs in the Admin tool, find the list’s snapshot history, and Restore the previous version. The restore snapshots the current version first, so it can be undone too.

A better fix usually follows the same path as any other change: correct it in DEV, test, and promote again.

9. Already have a form in production?

Start the process from the live form without rebuilding anything:

  1. On the production form, set up Environment settings for all four stages (or the ones you’ll use) and save.
  2. In Promote config, pick the production list as the source and switch to Manual override — any environment (allows demote). Every configured stage is then offered, including the ones before PRD.
  3. Demote to DEV. As with any promotion, the tool creates the DEV list if needed and adds missing fields. Activate DFFS on it.
  4. From here on, change the form in DEV only and promote forward.

Practical notes

  • Lock production. Once the process is in place, give Manage Lists on the PRD site only to the people who promote. Everyone else changes the form in DEV.
  • Keep list schemas in step. Add a new column in DEV, not in PRD — promotion’s field check will then offer to add it at each stage on the way up. Adding it in PRD first leaves DEV behind.
  • Point integrations at the right stage. A Power Automate flow, REST source or vLookup list in DEV should be the DEV one. Where the path differs per stage, use {assetUrl}, {currentSite} or {currentWeb} rather than a hard-coded URL. Lists this form reads from lists the vLookups, dropdown lists and autocomplete search boxes that would not.
  • Download a backup before big changes. Browse configs → Download gives you a JSON copy outside SharePoint, in addition to the automatic snapshots.
  • Don’t fix things in PRD. A quick fix in production is lost the next time DEV is promoted over it. If you must, demote PRD back to DEV straight away with the manual override, so the two match again.
↑ ↓ to moveEnter to openEsc to close