Skip to content

Forms and content controls

A form in Shabd is an ordinary document with content controls where the answers go: a box for typing a name, a drop-down list of classes, a date, a check box. You make the form once, protect it, and send it as a .docx file for people to fill in on their computer.

The tools are on the Developer tab.

An admission form in Shabd with the Developer tab open. The name of the student is filled in as Aarav Deshmukh, the date of birth as 14-08-2021, the mother tongue as Marathi, and the School bus needed box is ticked. The Class drop-down list is open, showing Nursery, Jr. KG, Sr. KG and Class 1 to Class 4.

Kinds of content control

The six buttons in Developer ▸ Controls each insert one kind of control. Point at a button to see its name.

Control What the person filling in does Shown at first
Rich Text Content Control Types text, which can be formatted and run to more than one paragraph Click or tap here to enter text.
Plain Text Content Control Types text in one paragraph Click or tap here to enter text.
Check Box Content Control Clicks to tick or untick it ☐
Combo Box Content Control Chooses from a list, or types something else Choose an item.
Drop-Down List Content Control Chooses from a list only Choose an item.
Date Picker Content Control Picks a date from a calendar Click or tap to enter a date.

The grey text shown at first is the placeholder. It goes as soon as something is typed or chosen, and comes back if the control is emptied.

Making a form

  1. Type the form's text, such as "Name of the student:", with a space after each label.
  2. Click just after the label.
  3. Click the button for the control on Developer ▸ Controls.
  4. For a list, a combo box or a date, set its properties (below).
  5. Repeat for each field.

If you select some text first, a text control goes round that text, which becomes its starting content. For the other kinds, the selected text is replaced.

A control is inside one paragraph. It can't go inside another control, and a selection for a control must be within one paragraph.

To lay out a long form neatly, put the labels and controls in a table: labels in the left column, controls in the right. See Tables.

Setting a control's properties

  1. Click in the control.
  2. Click Developer ▸ Controls ▸ Properties. The Content Control Properties dialog opens, with the kind of control at the top.
  3. Set what you need:
    • Title: a name for the control, shown when you point at it. Useful for the person filling in, such as "Student's full name as on the birth certificate".
    • Tag: a name for the control kept in the file, for other programs that read the form.
    • Content control cannot be deleted: the control can't be removed, though its content can be changed.
    • Contents cannot be edited: the content can't be changed.
    • Items (one on each line), for a drop-down list or combo box: type each choice on its own line.
    • Display the date like this, for a date picker: choose a format. The list shows today's date in each one.
  4. Click OK.

The date formats are:

Format Example
dd-MM-yyyy (the default) 05-11-2026
dd/MM/yyyy 05/11/2026
d MMMM yyyy 5 November 2026
dddd, d MMMM yyyy Thursday, 5 November 2026
dd-MMM-yyyy 05-Nov-2026
yyyy-MM-dd 2026-11-05
MM/dd/yyyy 11/05/2026

Changing the format of a date that's already filled in changes how it's shown.

Filling in a form

  • Text: click the control. The placeholder is selected; start typing and it's replaced.
  • Drop-down list: click it and choose from the list.
  • Combo box: click the ▾ after it to choose from the list, or click in it and type.
  • Date: click it, pick the date, and click OK. To change a filled-in date, click the ▾ after it.
  • Check box: click it, or press Space with the cursor in it, to tick ☒ or untick ☐.

A list with no items yet shows a message to add them in Developer ▸ Properties.

Note

A date picked from the calendar, or an item chosen from a drop-down list, stays grey like the placeholder text, though it is the real content and prints that way. Text you type into a control, including a combo box, shows in the normal colour.

Protecting a form

Protect the form so that people can fill in the controls but can't change the rest of the text.

  1. Click Developer ▸ Protect ▸ Restrict Editing.
  2. Tick Allow only this type of editing in the document and choose Filling in forms.
  3. Click Yes, Start Enforcing Protection.
  4. Save the form.

Now typing works only inside the controls. Typing anywhere else, and the buttons that would change the document, show the message "This document is protected". To change the form itself, click Restrict Editing and Stop Protection.

Shabd doesn't set a password on the protection, so it stops mistakes rather than determined changes. See Restricting editing.

Removing a control

Click just after the control and press Backspace, or just before it and press Delete. The first press selects the whole control; the second removes it with its content. A control with Content control cannot be deleted ticked can't be removed this way; untick it in Properties first.

Saving forms

Content controls, with their titles, tags, locks, list items, date formats and check boxes, are saved in .docx files and work in other word processors. The protection is saved too. Save forms as .docx; other file types keep only the text that's in the controls. See Opening, saving and file types.

Example: a school admission form

A school in Pune makes its admission form for 2026–27 and sends it to parents by email.

  1. Type the title "Admission Form 2026–27" in the Title style, a line saying "Fill in the form and hand it in at the school office.", and one line for each field: "Name of the student:", "Class:", "Date of birth:", "Mother tongue:" and "School bus needed:".
  2. After "Name of the student:", insert a Plain Text control.
  3. After "Class:", insert a Drop-Down List control. In Properties, type the items Nursery, Jr. KG, Sr. KG and Class 1 to Class 4, one on each line.
  4. After "Date of birth:", insert a Date Picker control and keep the dd-MM-yyyy format.
  5. After "Mother tongue:", insert a Combo Box control with the items Marathi, Hindi, English, Gujarati and Kannada. A parent whose language isn't in the list can type it.
  6. After "School bus needed:", insert a Check Box control.
  7. Use Restrict Editing with Filling in forms, and save the file as Admission Form.docx.

A parent opens the file, types the child's name, chooses the class and mother tongue, picks the date of birth, ticks the box, saves the file and emails it back.