Required, read-only and default controls in Parsware
Make a field required once and every form asks for it. Make it read-only on one form and it's shown but not edited there. Give it a default control and format, and every form and view shows it the same way.

A field's type decides what it stores. Three more settings decide how people meet it: whether they have to fill it in, whether they can change it, and which control they use to do so. In Parsware you set the first and the last once, on the field, and every form and view follows. Read-only is set on the form, because it depends on who the form is for.
We carry on with the Training Course table from the previous article. By the end, a course can't be saved without a start date and a level, its price is shown but not edited, and its start date reads 30 September 2026 everywhere. Every picture is the real product.
Required, on the field
Open the table's Fields page, tick Starts, and choose Edit. Tick Required.
Required is checked on forms, not in the database. Every column still accepts an empty value, so turning it on never makes an existing record invalid, and an import or an API call isn't refused for leaving it blank. The one exception is the table's primary field (Name), which is always required, because every list and lookup shows a record by it.
We did the same for Level. The Fields page now shows both in its Required column:

A default control, and a default format
The same drawer has a Default control. It decides how the field is shown on every form and in every view that doesn't choose otherwise. A course only needs a start date, not a time, so we chose Date instead of the usual Date and Time. A date field can also be pinned to the Persian calendar here.
Default format sets how the date is written. d MMMM yyyy gives 30 September 2026. dd is
the day, MM the month's number, MMMM its name, yyyy the year, and HH, mm and ss the
time. Leave it empty and the app's own date format applies (Settings → Calendar → Date formats).
This is the setting that saves you work. A table with four forms and three views would otherwise need the same answer seven times. Now you give it once, here.
On the form: it follows the field
Open the table's form and select Starts. Required is already ticked, and the Control says Default (Date), because the placement follows the field.

You can still change either one here, for this form only. Untick Required and this form treats Starts as optional, while every other form still asks for it. Leave it alone and the form keeps following the field, even if the field changes later.
Read-only, on the form
Select Price and tick Read-only. In our example finance sets the price, so on this form it's shown but not edited.

Read-only belongs to the form because it depends on who the form is for. A finance form of the same table can leave Price editable. The platform's own system fields, such as Created On and Modified By, are always read-only.
What people see
Open the course in the app. Price is shown in a shaded box, not a text box, and Starts shows just the date, in the format we set:

Add a new course and press Save with nothing filled in. The form doesn't save. Each required field has a red star beside its label, and the empty ones say This field is required.

Fill in a name, a start date and a level, and it saves. The date picker opens without a time, since the control is Date.
The list shows the default at work in a view too. We didn't set a format on the view's Starts column, so it uses the field's:

The controls each type can use
Default control offers only the controls that make sense for the field's type. This is the full list, and the cases where changing it is worth the trouble.
| Field type | Controls | When to change the default |
|---|---|---|
| Text | Text box | A text field that only ever holds one of a few values is better as an option set |
| Multiline text | Text area | Leave it |
| Boolean | Check box, Toggle | A toggle reads better for something switched on or off, such as Online |
| Date/time | Date and Time, Date, Time, and the same three in the Persian calendar | A due date or a birthday: Date. An opening time: Time. A Persian-language business: the Persian versions |
| Option set | Dropdown | Leave it |
| Lookup | Lookup search | Leave it |
| File, Image | File picker, image picker | Leave it |
A form can also replace the built-in control with a custom control that your developers build, for example a star rating instead of a number box. Choose the control a field uses shows the controls on a form, and Put a custom control on a field covers the custom kind.
What the form stores
The Form Designer saves each field on a form as a placement: which field, and anything this form says differently from the field. A placement that says nothing follows the field, which is why changing the field later changes every form at once. This is the course form's Details section after the steps above:
{
"title": "Details",
"fields": [
{ "field": "con_name" },
{ "field": "con_starts" },
{ "field": "con_level" },
{ "field": "con_price", "readOnly": true },
{ "field": "con_seats" }
]
}
Starts and Level say nothing about being required, because the fields already are. Price
says it is read-only, because that is this form's decision. A second form for finance would list
{ "field": "con_price" } with nothing else, and Price would be editable there.
If one form must treat Starts as optional, its placement says "required": false. Leave the key
out, and the placement keeps following the field.
Three places a field can be read-only
Read-only on the form is one of three, and they answer different questions.
- On the form placement, as above: on this form, nobody edits this. Good for a value another team owns.
- In the header strip at the top of a form, fields are read-only unless you say otherwise. The header is for what you glance at, such as the state, reason and owner, so editing there is the exception.
- Because of a rule, while the form is open: nobody edits this once the claim is approved. That needs a client business rule, because it depends on another value on the same record.
The platform's own system fields, such as Created On and Modified By, are always read-only wherever they appear. They are set by the platform when a record is saved and can't be typed in. Show who created or changed a record puts them on a form.
Required only sometimes
Required on the field is always. Often the real rule is sometimes: a rejection reason is needed only when the claim is rejected. That is a client business rule too. The expense approval sample does it with one function, which runs when the form opens and whenever the status changes:
func applyDecisionFields() {
var status = getValue('par_status');
// Rejected claims need a reason, and it is the only time the field is worth showing.
var rejected = status == 'rejected';
setVisible('par_rejection_reason', rejected);
setRequired('par_rejection_reason', rejected);
// The approver's note is for a decision either way, but not while the claim is a draft.
setVisible('par_approver_note', status == 'approved' || rejected);
// A decided claim's amount should not drift.
setDisabled('par_amount', status == 'approved' || rejected);
}
setRequired, setVisible and setDisabled change the form while it is open. They don't change
the field, so the next form to open starts from the field's own settings again.
BS Lang in ten minutes explains the language.
When required has to be a guarantee
Every check on this page is made by a form. That is deliberate: it lets you add Required to a field that already has empty values without breaking a single record, and it lets an import bring in half-finished rows that people complete later.
But it means a value written without a form isn't checked. An import, an integration calling the API or a process writing to the record can leave a required field empty. When a value must never be empty, whoever writes it, add a check on the server as well. It runs on every save from every source:
if (isEmpty(getValue('con_starts'))) {
throwValidationError('A course needs a start date.');
}
That script, registered as a step before Create and Update on the table, refuses the save and shows the message to whoever made it: on the form, in the import results or in the API's error. Add a server validation rule builds one step by step, and Business logic: which one to use explains when a form rule is enough and when the server has to decide.
Date formats worth copying
The Default format takes the same letters everywhere in the platform, in views and reports too. A few that cover most needs:
| Format | Shows | Good for |
|---|---|---|
d MMMM yyyy |
30 September 2026 | Forms and letters |
dd/MM/yyyy |
30/09/2026 | Dense lists, in the UK order |
yyyy-MM-dd |
2026-09-30 | Exports and anything sorted as text |
dddd d MMM |
Wednesday 30 Sep | Bookings and calendars |
HH:mm |
14:30 | A time-only control |
With the Persian controls the same letters give the Jalali day, month and year, so d MMMM yyyy
gives 8 Mehr 1405 in Persian. Persian calendars and date formats
has the details.
Questions that come up
I made a field required and old records still have it empty. Is that a problem? No. Nothing about existing records changes. The next time somebody opens one of them on a form and saves, the form asks for the value. If you want them filled in sooner, make a view filtered on Starts being empty and work through the list.
Can a field be required on one form and optional on another? Yes, and it is the usual reason for a placement to override the field. A quick New course form for the front desk can ask for the name only, while the full form asks for everything.
Why doesn't the required star appear in a view? A view lists records; it doesn't edit them, so there is nothing to require. Required matters on the form where the record is saved.
Can I make a field read-only for everybody, everywhere? Not with a setting, because read-only belongs to forms. Make it read-only on every form that shows it, and add a server rule that refuses a change to it, so nothing else can write it either. The server rule is the part that makes it true.
Can I hide a field instead of making it read-only? Yes. Leave it off the form, or hide it with
setVisible in a client rule when it doesn't apply. A field that isn't on a form still exists and
still appears in views that list it.
Does the default control change what is stored? No. A date shown with the Date control is still stored as a date and time. Switching the control to Date and Time later changes how it is shown, not any record.
Where does the format go when I set one on a view column too? The view column wins, for that view. View column properties covers the settings a column can have of its own.
In short
| Setting | Set on | Applies to |
|---|---|---|
| Required | The field, or one form's placement | Every form, unless a form says otherwise |
| Read-only | One form's placement | That form |
| Default control | The field | Every form and view, unless one chooses another |
| Default format | The field (date/time only) | Every form and view, unless one sets its own |