How-to: common tasks
All editionsThe things people most often want a form to do, and how to set each one up. New to Modern DFFS? Start with the quickstart; for every option, follow the links to the guides.
On-premises SharePoint, or classic forms? Modern DFFS works in SharePoint Online’s modern forms. For classic list forms, use Classic DFFS; its how-to page covers the same tasks.
Rules are added on the Rules tab of the form configuration. Each rule has conditions, Trigger this rule on (form load, change, or both), and the actions in If yes and If no; see Rules. The examples use internal names such as Category and Status; use the ones from your own list. Tasks marked Professional & Enterprise or Enterprise / Pro add-on need that edition (see Pricing & editions); everything else works in every edition.
Show, hide and lock fields
Show a field only when another field has a certain value
A rule with the condition Category is equal to Other, triggered on Form load and on change:
- If yes: Visible fields: the field.
- If no: Hidden fields: the field.
Always fill in both: without the If no action, the field stays visible after the user changes Category back. To match several values, add condition rows and combine them with Or.
Make a field required only in some cases
As above, with Required fields in If yes and Optional fields in If no. The column must be optional in the SharePoint list: a column that is required there stays required. When a rule hides and requires the same fields, put them in a field group so the actions stay in step.
Lock fields once the item is submitted
In the Edit form’s configuration, a rule with the condition Status is equal to Submitted:
- If yes: Read-only fields: the fields to lock.
- If no: Editable fields: the same fields.
If the Edit form shares the New form’s design, add the condition Current form is the Edit item form with And, so the New form is not affected. See New, Edit and Display forms.
Show a tab only to certain people
A rule with the condition SharePoint group: User is a member of group, and the group:
- If yes: Show/hide tabs: show the tab.
- If no: hide the tab, and make its fields optional so a hidden tab cannot hold up saving.
Tick Also match Entra ID groups that are members of this SharePoint group to include people who are in the group through an Entra ID group. To check an Entra ID group directly, use the Entra ID group condition (Professional & Enterprise). See Tabs.
Let only the approver edit the approval fields
A rule with the condition Approver, compared on its Email, is equal to [[currentuser:email]]:
- If yes: Editable fields: ApprovalStatus, ApprovalComment.
- If no: Read-only fields: the same fields.
When the people field allows several people, is equal to matches when the user is one of them. See Operators.
Fill in values automatically
Fill in the current user or today’s date
A rule with the condition Form loaded, and in If yes a Set field value. Click into the value box and use Add dynamic content:
- A people field: Current user (info) → LoginName, which writes
[[currentuser:loginName]]. - A date field: Timestamp → Today as date object,
[[timestamp:{"date":"today"}]]. For two weeks from today, use the offset entry and changeoffsetDaysto14.
Only if the field is empty is ticked on a new row, so a value that is already there is kept. Every token is listed in Dynamic content & tokens; the quickstart walks through this rule.
Calculate a value from other fields Professional & Enterprise
A rule with the conditions Price is changed Or Quantity is changed, triggered On change only. In If yes, add Compute field value with Total as the target and the operation Multiply, or a formula such as [[fieldValue:Price]]*[[fieldValue:Quantity]]. Formulas support functions such as IF, ROUND and DATEDIF; see Compute field value & formulas.
Fill in a field from a link
Add a parameter such as Project=Alpha to the query string of the link that opens the form. A rule with the condition Form loaded and a Set field value on Project with [[getUrlKeyValue:Project]] copies it into the field. Useful for links from another page or list that start a new item for something specific. See URL query string value.
Check what users type
Check the format of a value Professional & Enterprise
In the field’s properties in the form builder, turn on Pattern validation, pick a format (email, URL, number, letters, alphanumeric, or your own regular expression) and write the message users see when the value does not match. No rule is needed. See Field enhancements.
Make sure an end date is after the start date Professional & Enterprise
Give EndDate a date range limit with StartDate as the earliest date, so the date picker does not offer an earlier date. The limit can be a fixed date, a date relative to today or to another field, or a formula. Set it in the field’s properties, or from a rule with the Restrict date range action. See Field enhancements.
Show a message when something needs attention
In a rule’s If yes (or If no):
- Message box shows a message, with field values such as
{Title}. It closes with a click anywhere, or only with its button. - Validation message (Professional & Enterprise) shows a message under a field until another rule clears it with Clear validation message, or for a set number of seconds.
See Actions.
Layout
Split a long form into tabs or steps
In the form builder, click + in a column and add a Tab set. Open Edit tab set, add the tabs, and fill each with rows, columns and fields. To take users through the tabs in order, tick Show as multi-step-form with previous and next buttons (Professional & Enterprise); the progress bar works in every edition. A rule with Show/hide tabs shows a tab only when it applies. See Tabs and Multi-step forms.
Put fields side by side
A form is a grid of rows, and each row holds columns. Give a row two or more columns and put one field in each. Adding columns before you add the fields saves moving them afterwards; see the quickstart.
Add help text to a field
On the field in the form builder, open its menu and choose Tooltip. Enter the text (HTML and dynamic content work too) and choose where the icon sits next to the label. The form shows an information icon with the text next to the field.
Data from other lists
Show related items, such as order lines Professional & Enterprise
A vLookup element shows items from another list that belong to the current item (a purchase request and its order lines, a project and its milestones), with your own filter, from any site. Related Items links items to each other, such as tickets that block or duplicate each other, and shows the links from both sides. The vLookup guide explains which of the two to use.
Let users enter line items in the form Professional & Enterprise
A Repeating section shows the items of a child list as a table in the form, where users add, edit and delete rows without leaving it. It can show calculated columns and a totals row. See Repeating sections.
Filter one dropdown by another Professional & Enterprise
Turn Product into a Dropdown list (field properties) with a list of products as the data source, and filter it on the chosen category: Category eq '[[fieldValue:Category]]'. The dropdown follows Category as the user changes it. See Cascading lists.
Pick a value from another list with search Professional & Enterprise
Turn a text field into an Autocomplete search box (field properties): it suggests items from a list as the user types, and picking one can fill in other fields too. The field stays an ordinary text column. The source can be a SharePoint list on any site, or a REST endpoint. See Dropdown list & autocomplete.
E-mail, PDF and change safely
Send an e-mail when the status changes Professional & Enterprise
- Once per site, set up the e-mail list and the two Power Automate flows that send the e-mails. The Modern DFFS Admin tool creates them; see Send email: flow setup.
- Add a rule with the condition Status is equal to
Approved, triggered On change only, so the e-mail is sent when a user changes the status and not every time an approved item is saved. - In If yes, add Send email: To with dynamic content such as
[[fieldValue:Requester.email]], a Subject such asApproved: [[fieldValue:Title]], and the Body.
The e-mail is sent after the form is saved, from the mailbox that owns the flow’s connection. It can also wait for a send date, or be previewed by the user first. See Send email & cancel email.
Save the form as PDF Enterprise / Pro add-on
Print to PDF saves the form as a PDF with your own cover page, header and footer. Tabs can become section headings, and empty fields can be left out. See Print to PDF.
Change a form that is in use without affecting users
The proper way Enterprise / Pro add-on: build and change the form in a DEV site, test it in SIT and UAT, and promote the approved configuration to PRD with the Modern DFFS Admin tool. Columns and test data stay out of production, and every overwrite can be rolled back. See Develop & test forms outside production. Environments need Enterprise, or Professional with the Modern DFFS Admin add-on.
For a small change, in every edition: switch to development mode on the configuration’s first screen. You edit a working copy that only you use while users keep the production version, and restore it into production when you are done. Columns and items are shared with production, so it is not a replacement for environments.
Form tests (Professional & Enterprise) check after every change that the rules still do what they should.