Forms & validation
The design system supports highly accessible forms with robust validation display options.
Fields
A field is a label (for example, Email address), a control (for example, input field, checkbox), optional help text, and a slot for an error, warning or info message. That order never changes. Labels sit above their controls, and related fields group by spacing rather than boxes.
Note
Field widths are set by the type of control, on the assumption that the element already tells you about how much someone will type. If you need to override a default width, two classes are available (see Field width).
Relevant code
<form class="ds-form">
<div class="ds-field">
<label class="ds-label" for="f-email">Email address</label>
<input class="ds-input" id="f-email" type="email" required aria-required="true" aria-describedby="f-email-hint" value="e.vasquez@example.edu">
<p class="ds-hint" id="f-email-hint">Used only to confirm your submission.</p>
</div>
<div class="ds-field">
<label class="ds-label" for="f-cat">Primary category</label>
<select class="ds-input" id="f-cat" required aria-required="true">
<option>hep-th — High Energy Physics – Theory</option>
<option>math.CO — Combinatorics</option>
<option>physics.optics — Optics</option>
</select>
</div>
<div class="ds-field ds-field--short">
<label class="ds-label" for="f-orcid">ORCID iD<span class="label-optional">(optional)</span></label>
<input class="ds-input" id="f-orcid" type="text" placeholder="0000-0000-0000-0000">
</div>
<fieldset class="ds-field">
<legend class="ds-label">License</legend>
<label class="ds-check"><input type="radio" name="license" value="cc-by" checked><span>CC BY 4.0</span></label>
<label class="ds-check"><input type="radio" name="license" value="cc-by-sa"><span>CC BY-SA 4.0</span></label>
<label class="ds-check"><input type="radio" name="license" value="arxiv"><span>arXiv non-exclusive license</span></label>
</fieldset>
<label class="ds-check">
<input type="checkbox" checked>
<span>Email me when the moderators respond</span>
</label>
<div class="ds-btn-group ds-btn-group--end">
<button class="ds-btn ds-btn-text" type="button">Cancel</button>
<button class="ds-btn ds-btn-primary" type="submit">Save changes</button>
</div>
</form>
- .ds-form
- Wraps the fields. Half-width fields share a line, a full-width one takes its own,
and anything that is not a field takes a whole row. Optional: a plain
<form>stacks every field. - .ds-field
- Wraps one label, control, hint and message, in that order, and supplies the spacing between fields.
- .ds-label
- The label. Always present, always above the control, and always tied to it with
for. - .label-optional
- On the label of an optional field, holding the word
(optional). Required fields have no marker; they takerequiredandaria-required="true"on the control instead. - .ds-input
- The control. Goes on
input,selectandtextareaalike. - .ds-hint
- Help text, after the control. Give it an
idand name it in the control'saria-describedby. Say what good input looks like before someone gets it wrong. - <fieldset>, <legend class="ds-label">
- A group of controls that answer one question, such as a radio group: a
<fieldset class="ds-field">whose<legend>asks it, then one.ds-checkper option, each withtype="radio"and the samename. The base styles take away the browser's box. Keep the legend short: a screen reader may read it before every option. - .ds-check
- A checkbox or radio row: a
<label>holding the native control and a<span>with the text. The whole label is the target.
Compact form
A normal form is the main content of the page, or an important part of it. A compact form supports the main content: it changes the view or controls part of it, such as a filter, or it is a small form beside it, such as a signup in a sidebar. A supporting form that needs long text or detailed help stays a normal form.
A compact form is one row, or one short column when its container is narrow. Each label sits beside its field, and the fields and buttons are compact. Joined controls, as in a search, keep the full size.
Selects that change a view, in a card header bar
| Submission | Category | Submitted |
|---|---|---|
| submit/9620418 | cs.CV | 2026-09-11 |
| submit/9617750 | cs.AI | 2026-09-05 |
| submit/9614203 | cs.LG | 2026-09-02 |
Relevant code
<div class="ds-card">
<div class="ds-card-bar">
<form class="ds-form--compact" method="get" action="…" aria-label="Filter submissions">
<label>Group <select class="ds-input" name="group">…</select></label>
<label>Sort by <select class="ds-input" name="order">…</select></label>
<button class="ds-btn ds-btn-compact" type="submit">Apply</button>
</form>
</div>
<div class="ds-table-scroll" …><table class="ds-table">…</table></div>
</div>
- .ds-form--compact
- On the
<form>. Puts the controls and the button on one row, and makes each field compact. When the form's container is narrow, the labels make one column and the fields another. - <label>
- Each control sits inside its own label, the label's words before it. No wrapper class is needed.
- .ds-btn-compact
- The button. Secondary when it changes the view, such as Apply; primary when sending the form is the form's job.
- .ds-card-bar
- The header bar of the set the form changes. See Cards with a header bar.
A search
Relevant code
<form class="ds-form--compact" method="get" action="forms.html#compact-form" role="search" aria-label="Search arXiv">
<div class="ds-input-group">
<label class="is-sr-only" for="cf-query">Search term</label>
<input class="ds-input" id="cf-query" name="query" type="search" value="gravitational lensing">
<label class="is-sr-only" for="cf-field">Field to search</label>
<select class="ds-input" id="cf-field" name="searchtype"><option>All fields</option><option>Title</option><option>Author(s)</option><option>Abstract</option></select>
</div>
<button class="ds-btn ds-btn-primary" type="submit">Search</button>
<label class="ds-check"><input type="checkbox" name="abstracts" value="show" checked><span>Show abstracts</span></label>
<label>Sort by <select class="ds-input" name="order"><option>Newest announced</option><option>Relevance</option></select></label>
<label>Per page <select class="ds-input" name="size"><option>25</option><option selected>50</option><option>100</option></select></label>
<a href="forms.html#compact-form">Advanced search</a>
</form>
- .ds-form--compact
- With joined controls, the joined input takes the spare width of the row. Anything after the button goes on the line below: a message first, then secondary options, such as Show abstracts and the settings for the results (compact selects for order and results per page). A link to another page, such as Advanced search, sits at the end of that line.
- .ds-input-group
- Joins the controls that make one input, such as a search term and the field it searches. The text input takes the spare width and the select takes what it needs. Joined controls and the button after them keep the full size, because they are the form's main input.
- .field-error
- A message goes directly after the button and shows under the row, so the button stays beside the field. The rest follows Validation.
- .is-sr-only
- On each
<label>when a heading or the button already says what the form does. The label is read out and not shown.
- Use it for a form that supports the main content. A form with long text or detailed help uses the standard fields.
- Every control has a label beside it. Hide it with
.is-sr-onlyonly when a heading or the button says what the form does. Never use a placeholder as the label. - The button names the action. “Search” or “Apply”, not “Go” or “Submit”.
- Keep Apply when a change reloads the page, or when the form has several fields. A reader expects a change of page only when they ask for it. Leave Apply out only when the page updates in place, and keep a submit button for a page without script.
- Join only the controls that make one input. Controls that could be filled in separately stay separate.
- Secondary options go below the row. A checkbox or a link there never moves the button away from its field.
- On a narrow screen the form is one short column. Labels in one column, fields in the other. With joined controls, the joined controls share one row and the button takes its own line.
- On a touch screen every target is 44px. A compact field and a compact button keep their drawn size; the target reaches, unseen, above and below. Typed text is 16px, so the page does not zoom when a field takes focus.
Validation
Fields can be in three possible states: normal, validated, or disabled. Validation styles change based on the error disposition, that is, its severity.
One sentence is enough.
Locked once a paper is announced.
Remove the HTML markup <br>.
This does not look like an ACM code. Expected form: F.2.2.
Extra spaces were removed. Please confirm it reads correctly.
Relevant code
<div class="ds-field ds-field--full">
<label class="ds-label" for="v3">Abstract</label>
<input class="ds-input is-invalid" id="v3" type="text" aria-invalid="true" aria-describedby="v3-m" value="<br>Our analysis introduces">
<p class="field-error" id="v3-m">Remove the HTML markup <code><br></code>.</p>
</div>
<div class="ds-field ds-field--full">
<label class="ds-label" for="v4">ACM classification<span class="label-optional">(optional)</span></label>
<input class="ds-input is-warning" id="v4" type="text" aria-describedby="v4-m" value="s 25">
<p class="field-warning" id="v4-m">This does not look like an ACM code. Expected form: <code>F.2.2</code>.</p>
</div>
<div class="ds-field ds-field--full">
<label class="ds-label" for="m1">Abstract</label>
<textarea class="ds-input is-invalid" id="m1" rows="3" aria-invalid="true" aria-describedby="m1-m">Abstract: We study the convergence of stochastic gradient methods.<br>Data at https://example.org/sgd.</textarea>
<ol class="field-messages" id="m1-m">
<li class="field-error">Do not begin the abstract with the word “Abstract”.</li>
<li class="field-error">Remove the HTML markup <code><br></code>.</li>
<li class="field-warning">Font commands are not processed and appear literally.</li>
<li class="field-warning">Add a space between a URL and the punctuation after it.</li>
</ol>
</div>
- .is-invalid
- On the control, for the error tier. Pair with
aria-invalid="true". - .is-warning
- On the control, for the warning tier. No
aria-invalid: the value is accepted. - .is-info
- On the control, for the info tier: arXiv changed the value and is telling the author.
No
aria-invalid. - .field-error, .field-warning, .field-info
- The message, after the control and after the hint when there is one, one class per tier. Needs an
idthat the control'saria-describedbynames. Write the message, and add itsidtoaria-describedby, only while it applies: a screen reader reads a described message even when it is hidden. - .field-messages
- An
<ol>when one field has several problems. Each<li>takes its own tier class, and the list takes theidthe control points at. The control takes the class of the worst tier in the list. - [disabled]
- On the control. The label and hint stay; the control grays out and leaves the tab
order. For a control that could explain why it is unavailable, prefer
aria-disabled="true", which looks the same; on a field, pair it withreadonly, becausearia-disabledalone does not stop typing. See the accessibility essentials.
Example: F.2.2; I.2.7
This does not look like an ACM code. Expected form: F.2.2.
Relevant code
<div class="ds-field ds-field--full">
<label class="ds-label" for="hb">ACM classification<span class="label-optional">(optional)</span></label>
<input class="ds-input is-warning" id="hb" type="text" aria-describedby="hb-h hb-m" value="s 25">
<p class="ds-hint" id="hb-h">Example: <code>F.2.2; I.2.7</code></p>
<p class="field-warning" id="hb-m">This does not look like an ACM code. Expected form: <code>F.2.2</code>.</p>
</div>
- aria-describedby="hb-h hb-m"
- Names the hint first, then the message, so a screen reader reads them in the order they appear.
Alerts in forms
Repeat the problems below the page heading using an alert component. Errors are grouped into alerts by disposition (error, warning, info) and are not mixed. Each alert holds an ordered list of items. See Alerts for full documentation. Below is an example of using an alert specifically for validation.
2 blocking errors
Blocking errors must be corrected before you can continue. Select an item to jump to that field.
Relevant code
<div class="ds-alert ds-alert--error" tabindex="-1">
<svg class="ds-alert-icon" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" aria-hidden="true">
<path d="M12 16h.01"/>
<path d="M12 8v4"/>
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
</svg>
<div class="ds-alert-content">
<p class="ds-alert-title">2 blocking errors</p>
<p>Blocking errors must be corrected before you can continue. Select an item to jump to that field.</p>
<ol>
<li><a href="#m1">Abstract — do not begin with the word “Abstract”</a></li>
<li><a href="#m1">Abstract — remove the HTML markup <code><br></code></a></li>
</ol>
</div>
</div>
- .ds-alert--error, .ds-alert--warning, .ds-alert
- One alert per severity, never a mixed one: red has to mean “you cannot proceed”, and
a non-blocking item inside a red alert destroys that. Two problems of two severities means
two alerts, in severity order. A warning summary is the same construction in
.ds-alert--warning, and an automatic change is a bare.ds-alert, which is the info state. No role: focus moves to the summary, and that is what makes a screen reader read it. See Alerts for the four severities and their markup. - tabindex="-1"
- On the summary, so a script can move focus to it when a submit fails, whether a script
showed the summary or the server sent the page back with it. A
<div>cannot take focus without it, and the-1keeps it out of the tab order. - .ds-alert-title
- Includes the count. The body under it says what that severity means for the reader: whether they may continue.
- <ol>
- One row per problem, each an
<a>linking to its field. Rows repeat the field name even when several name the same field: without it the reader cannot tell whether three problems mean one field to visit or three. Derive every count and every row from the field results; a summary written by hand can disagree with the fields it describes, and eventually will.
Validation message language and tone
arXiv's general style rules all apply: no contractions, no jargon, keep it brief. See STYLE.md for full guidelines. In addition, these rules are specific to validation messages and will help users take action quickly.
- One instruction per sentence. Each bullet should point out one thing and be tied to one action.
- Never blame the reader. "Upload processing failed" is neutral, while "You uploaded an invalid file type" is blaming.
- Use an issue count as the title. "2 blocking errors" gives the user a lot of important information about scope and severity upfront.
- Write actionable messages. Help the user take the next step by describing the problem as an action to take, rather than a passive error report. See the examples below.
| Too passive | More actionable |
|---|---|
| Invalid email. | Enter an email address, like name@university.edu. |
| This field is required. | Give a reason before saving. |
| Password does not meet requirements. | Use at least 12 characters. |
| Check this field. | You may continue, but your submission may be delayed. |
| Title was invalid. | Extra spaces were removed. Please confirm it reads correctly. |
These guidelines are specific to the severity level of each validation message:
- Error messages: Tell the user how to fix the problem without over-describing technical details. "Remove the HTML markup" is actionable and explanatory, but describing the invalid markup would be too much detail.
- Warning messages: The user is not blocked, but tell them what happens if they choose to continue. “Your submission may be held for moderator review” gives important context and can nudge behavior, while “check this field for accuracy” is a lost opportunity.
- Info messages: Useful when the system has autocorrected content from the user. "Extra spaces were removed. Please confirm it reads correctly" tells the user what changed, does not imply something is wrong, and includes a clear ask.
Switch
A boolean that applies the moment it is flipped. If the change needs a Save step then use a checkbox, not a switch.
Relevant code
<label class="ds-switch">
<input type="checkbox" role="switch" checked>
<span class="ds-switch-track"><span class="ds-switch-thumb"></span></span>
<span class="ds-switch-label">Email digest</span>
</label>
- .ds-switch
- The
<label>that wraps the whole control. The visible text goes inside it, because that is what names the switch; a switch with only a heading beside it has no accessible name. - role="switch"
- On the checkbox input. With it a screen reader says “on” and “off”; without it, “checkbox, checked”. The input stays a real checkbox, so the keyboard behavior, the state and the form value are native and it works with no JavaScript.
- .ds-switch-track, .ds-switch-thumb
- The drawn background and the thumb that moves across it. Both required, nested as shown,
directly after the input. Only the background fill changes with the state: the Border color when
off, the accent when on (Open Blue public, Access Lime inside
.ds-internal). The Strong Border edge and the Repository Brown thumb stay the same in both states and both themes. - .ds-switch-label
- The visible text. Its color follows the state; nothing else about it changes.
- [disabled]
- On the input. The background and the label gray out together.
Segmented control
An exclusive choice rendered as adjacent buttons, for a decision where
every option should stay visible. Two to four options; past that it is a <select>
or a radio group, because a row of six buttons stops being scannable and starts being a wall.
Note
Nothing is selected until something is selected: the undecided example is the resting state of a decision nobody has made yet, and it is a real state, not a bug to hide by pre-selecting the middle option.
Relevant code
<fieldset class="ds-seg">
<legend class="is-sr-only">Positive example</legend>
<label class="ds-seg-btn ds-seg-btn--positive"><input type="radio" name="decision" value="author" checked>Author</label>
<label class="ds-seg-btn"><input type="radio" name="decision" value="proxy">Proxy</label>
<label class="ds-seg-btn ds-seg-btn--negative"><input type="radio" name="decision" value="no">No</label>
</fieldset>
- .ds-seg
- A
<fieldset>holding two to four.ds-seg-btn. - <legend>
- Required. It is the group's accessible name: without it a screen reader announces
three buttons and never says what they decide. Hide it with
.is-sr-onlywhen the surrounding text already says it; hide it, do not omit it. - .ds-seg-btn
- One option: a
<label>holding a native<input type="radio">, all with onename. A radio group, drawn as joined buttons: the browser keeps one option selected, the arrow keys move between them, and it works without JavaScript. The form it belongs to saves the choice; where the choice acts at once, a script listens for the change. - .ds-seg-btn--positive, .ds-seg-btn--negative
- Accept and reject; a bare
.ds-seg-btnis informational. They take the success, info and error tokens and mean the same thing those mean everywhere else; they are not free colors to pick from, and they flip for dark mode with the rest of the status palette. - checked
- On the selected option's radio. The stylesheet draws the selected option from it, so no class and no script are needed, and a screen reader says which one is selected. Undecided is no radio checked.
Tooltip
A short explanation attached to a control, on hover and on focus. The lighter half of the popover family: no title, no close button, and never content that exists nowhere else.
Note
Not for anything required: if the reader must have it to fill the field in, it is help text under the control, not a tooltip, which is for the person who stops and wonders.
Correct the 2 blocking errors to continue.
Hover over or tab to the question mark or the first Continue button.
Relevant code
<!-- Label with a tooltip -->
<div class="ds-field">
<div class="ds-label-row">
<label class="ds-label" for="f-doi">DOI</label>
<span class="ds-tooltip-host">
<button type="button" class="ds-btn ds-btn-text ds-btn-icon" aria-describedby="tip-doi">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10"/>
<path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3"/>
<path d="M12 17h.01"/>
</svg>
<span class="is-sr-only">What is a DOI?</span>
</button>
<span class="ds-tooltip" id="tip-doi" role="tooltip">
<span class="ds-tooltip-body">If the paper has been published, the publisher's DOI. Leave it empty otherwise; arXiv mints its own.</span>
</span>
</span>
</div>
<input class="ds-input" id="f-doi" type="text" placeholder="10.1000/example">
</div>
<!-- Disabled action, reason in a tooltip -->
<div class="ds-btn-group ds-btn-group--end">
<button type="button" class="ds-btn ds-btn-text">Cancel</button>
<span class="ds-tooltip-host">
<button type="button" class="ds-btn ds-btn-primary" aria-disabled="true" aria-describedby="tip-continue">Continue</button>
<span class="ds-tooltip ds-tooltip--end" id="tip-continue" role="tooltip">
<span class="ds-tooltip-body">Correct the 2 blocking errors to continue.</span>
</span>
</span>
</div>
<!-- Disabled action, reason as help text -->
<div class="ds-btn-group ds-btn-group--end">
<button type="button" class="ds-btn ds-btn-text">Cancel</button>
<button type="button" class="ds-btn ds-btn-primary" aria-disabled="true" aria-describedby="continue-why">Continue</button>
</div>
<p class="ds-hint" id="continue-why">Correct the 2 blocking errors to continue.</p>
- .ds-tooltip-host
- Wraps the trigger and the bubble, and positions the bubble. It sits beside the
<label>, never inside it: a label forwards clicks to the control it names, so a button nested in one is a button whose clicks land somewhere else. - .ds-label-row
- Puts a label and its tooltip trigger on one line, in place of the label's own spacing. The icon trigger inside it is compact and still clears the 24px target.
- aria-describedby="tip-doi"
- On the trigger, naming the tooltip's
id. The tooltip describes the control and is never its accessible name: a name that only appears on hover is a name most people never get, so an icon trigger has an.is-sr-onlylabel of its own, as above. - aria-disabled="true"
- On an unavailable action that explains itself. The reason goes in a tooltip by
default, because it takes no room and does not move the layout. Where there is room, it
can sit under the actions as
.ds-hinttext instead, named in the button'saria-describedby. Usearia-disabled, notdisabled: a disabled button cannot take focus, so a keyboard user would never reach the reason. The script must ignore clicks while it is set. - .ds-tooltip
- The bubble, with
role="tooltip"and theid. It opens downward and toward the inline end, on hover and on focus, with no JavaScript. Escape must close it without moving focus, which CSS cannot do: a listener setshiddenon it, and clears it when the pointer or focus arrives again.tooltip.jsdoes this, once per page. Without JavaScript, the tooltip still closes when the pointer or focus moves away, and Escape does not close it. - .ds-tooltip-body
- The text. Short, and never content that exists nowhere else.
- .ds-tooltip--end
- For a host that always sits at the trailing edge of its container, like the Continue
button above: the bubble opens back toward the start. Anywhere else, including a tag in a
row that wraps,
tooltip.jsslides the bubble back onto the screen when it would cross an edge. Both directions use logical properties, so both are correct in a right-to-left script.
Accessibility essentials
- Every control has a label. Put a real
<label for>on every control, pointing at the control'sid. Hide it with.is-sr-onlywhen there is no room for it; do not leave it out. - Mark the optional fields, not the required ones. Put
(optional)inside the visible label of an optional field. Putrequiredandaria-required="true"on every required control: required fields have no visual marker, so this pair is the only signal a screen reader gets. Never put either word inaria-labelortitle. - Connect every hint and message to its control. Give each
.ds-hintand each message anid, and list them in the control'saria-describedby. Without that a screen reader announces the field and nothing else. A message is in the page, and named there, only while it applies; a hidden message that is still named is read out on a valid field. - Use
aria-invalidfor errors only. Setaria-invalid="true"on a control in the error tier and remove it when the error clears. A warning is not invalid, and an info message is not a problem at all. - Say the tier in words. Color and a border are never the only signal (WCAG 1.4.1). The message says what is wrong or what changed, or includes a visually hidden “Error:” or “Warning:” prefix.
- Validate on submit, then move focus. Do not tell someone they are wrong
while they are still typing. Once a field is invalid, re-check it on every
inputevent so the error clears the moment it is fixed. When submission fails, move focus to the summary, so a screen reader reads the count and the list before anything else, or to the first invalid field when the form has no summary, such as a compact form. - Name the failure in the page title, and give the summary no role. When the
server sends the page back with errors, the page's
<title>starts with “Error:”, the first thing a screen reader announces on the new page. Focus already makes the summary heard, and a role on an alert that is in the page as it loads is not reliably announced (see Alerts). - Prefer
aria-disabledtodisabledfor a control that could explain itself.disabledleaves the tab order entirely, so a user who cannot proceed finds nothing there and no reason why. The two must look identical.
Modifiers
Field width
Default field widths are set to follow the expected amount of content and are an important clue for users as to what is expected in any given field. Widths will generally not need any manual adjustment but two overrides exist just in case: .ds-field--short and .ds-field--full.
Relevant code
<form class="ds-form">
<div class="ds-field ds-field--short">
<label class="ds-label" for="w-year">Year</label>
<input class="ds-input" id="w-year" type="text" inputmode="numeric" value="2026">
</div>
<div class="ds-field">
<label class="ds-label" for="w-date">Date</label>
<input class="ds-input" id="w-date" type="date" value="2026-09-23">
</div>
<div class="ds-field ds-field--full">
<label class="ds-label" for="w-title">Title</label>
<input class="ds-input" id="w-title" type="text" value="Heavy-tailed gradients in deep networks: a study of convergence under stochastic optimisation">
</div>
</form>
- .ds-field--short
- Caps the field at 11rem, for a code, an identifier or a year.
- .ds-field--full
- Releases the cap, for something that genuinely wants the whole measure.
Rules
Disposition tiers
What each tier means for the person filling the form in.
| Disposition | Can they continue? | What it means |
|---|---|---|
| Error | No | Blocking. The value is not acceptable and must be corrected. |
| Warning | Yes | Accepted, but the value may be suspect or cause issues later on. |
| Info | Yes | When used in validation it means arXiv changed the value automatically (for example, normalizing whitespace). Nothing is wrong; the author is being informed. |
Layout
- Labels go above the control. A label-left, field-right layout gives a ragged edge and reads badly on a phone.
- Group related content with spacing, not by adding more bordered divs. If spacing is insufficient then the form might be calling for subsections or to be broken up into different pages.
- The action bar is right-aligned, with the primary action button (Save, Continue, etc.) the last one on the right. On long forms, consider repeating it at the top so the user does not need to scroll as much.
- Disabled, not missing. An action that is unavailable renders disabled, with the reason in a tooltip, or as help text under the actions where there is room (see Tooltip). The reader can see it exists and is not left wondering what is happening.