Keyform StudioHelpOpen Keyform Studio

Training Guide: HTML

This guide takes a finished form from the Build tab into OnBase: reading the HTML, saving it, importing it as an HTML form template, testing it, and keeping its design file for later changes. Allow about 30 minutes, plus time in your OnBase Test system. Finish the Build and Preview guide first.

Chapter 1: What the HTML tab gives you

The HTML tab turns the form on your Build tab into two things: the HTML file OnBase uses, and a design file Keyform Studio uses to reopen the form.

PartWhat it isWho uses it
HTML code (left)A complete, self-contained HTML page: the form, its styling and a small validation scriptOnBase, as an HTML form template
Put it in OnBase (right)The import steps, with your form's Document Type filled inYou
Design file (right)The form's layout and bindings as JSON textKeyform Studio, to reopen and change the form
Summary lineHow many keyword fields, the file size, and any problems still open on the Build tabYou, as a last check

The HTML is regenerated every time you open the tab, so it always matches the Build tab.

Chapter 2: Read the generated HTML

You don't need to edit the HTML, but knowing its four parts helps you check it and explain it to your OnBase administrator. Keyword field names are highlighted in the code.

  1. The comment at the top names the form, the date it was generated, its Document Type and the naming rules.
  2. The style block sets the look: fonts, spacing, your button colour, and the phone layout.
  3. The form holds one block per field. Each input's name tells OnBase where the value goes.
  4. The script at the bottom checks required fields in older browsers that can't do it themselves.

How field names work

Name in the HTMLMeaning
OBKey_Vendor_Name_1Save to the keyword Vendor Name, first instance. Spaces and symbols in the keyword name become underscores.
OBKey_Vendor_Name_2The second instance of the same keyword, when a form saves it twice
local_Notes_for_APNot a keyword. The value stays on the form only.
OBBtn_SubmitThe submit button

The OBKey_ pattern is the standard OnBase HTML form convention. Button names and some rules vary by OnBase version, so confirm them against the E-Forms Module Reference Guide for yours.

Example: one field as generated

<div class="ob-f ob-half">
  <label for="fld_k3j9x2a">Vendor name<span class="ob-req">*</span></label>
  <input type="text" id="fld_k3j9x2a" name="OBKey_Vendor_Name_1" maxlength="80" required="required" data-required="1" data-label="Vendor name">
</div>

The maxlength of 80 comes from the keyword's length in OnBase, so people can't type more than the keyword can store.

Chapter 3: Copy and save the HTML file

  1. Check the summary line above the code. If it mentions problems, go back to the Build tab and clear them first.
  2. Select Copy HTML. A Copied message appears.
  3. If your browser blocks the clipboard, the code is selected for you instead; press Ctrl+C (Cmd+C on a Mac).
  4. Open Notepad (Windows) or TextEdit in plain-text mode (Mac), paste, and save the file with a .htm ending, for example AP-Invoice-Intake-v1.htm.
  5. Choose UTF-8 as the encoding if asked, so accents and symbols survive.

Put the version in the file name (v1, v2) so you always know which file is live in OnBase.

Chapter 4: Import the form into OnBase

An OnBase administrator imports the file as an HTML form template and links it to its Document Type. The menus differ between OnBase versions, so use these steps as a checklist alongside the E-Forms Module Reference Guide for your version.

Before you start

Steps

  1. Open OnBase Configuration, or OnBase Studio if your version manages forms there.
  2. Import the .htm file as an HTML form template.
  3. Link the template to the Document Type shown in the Put it in OnBase panel, for example AP - Invoice.
  4. Make sure the user groups who will fill in the form can create documents of that Document Type.
  5. If submitted forms should start a Workflow, check that the Document Type feeds the right Life Cycle.
  6. Save, then refresh or restart the OnBase client so it picks up the new template.

If the keyword names in your Test system differ from the ones in Keyform Studio, stop and fix the bindings on the Build tab first; a mismatched name is silently ignored.

Chapter 5: Test the form in OnBase

Test in each client your people use, because the Unity Client and the Web Client can use different browser engines.

  1. In the OnBase client, create a new form of the Document Type, for example AP - Invoice.
  2. Check the layout: headings, half-width pairs and help text look as they did on the Preview tab.
  3. Submit with a required field empty. The form should stop and name the field.
  4. Fill in every field with test values and submit.
  5. Open the new document and its keywords. Compare each keyword value with what you typed, using the Preview tab's What OnBase receives list from the same values as your reference.
  6. Check that the unbound field, such as Notes for AP, is not stored as a keyword.
  7. If the Document Type starts a Workflow, check the document arrived in the first queue.

Record the result

CheckUnity ClientWeb Client
Layout matches the preview
Required fields stop the submit
Every keyword saved correctly
Unbound fields not saved as keywords
Workflow started, if used

Chapter 6: Keep and reopen design files

The HTML file can't be reopened in the Build tab; the design file can. Keep one next to every form you put into OnBase.

Save the design file

  1. On the HTML tab, select Copy design file.
  2. Paste it into a new plain-text file and save it with the same name as the HTML plus .json, for example AP-Invoice-Intake-v1.json.
  3. Store both files together: a shared folder or, better, a source control repository your team uses.

Reopen a form

  1. Finish or save whatever is on your Build tab, because opening a design file replaces it.
  2. On the HTML tab, paste the design file's text into Open a design file.
  3. Select Open, then select it again to confirm.
  4. Go to the Build tab: the form is back, with every binding and setting.

Chapter 7: Change a live form

Change a form by editing its design in Keyform Studio and re-importing the HTML, never by editing the HTML by hand; hand edits are lost the next time someone generates it.

  1. Open the form's latest design file (Chapter 6).
  2. Make the change on the Build tab and test it on the Preview tab.
  3. Copy the new HTML and design file and save them as the next version, for example v2.
  4. Import and test the new template in your Test system (Chapters 4 and 5).
  5. Repeat the import in production, following your company's change process.

Changes that need extra care

ChangeWhy it matters
Rebinding a field to another keywordDocuments created after the change save to the new keyword; reports and Workflow rules that read the old one need updating
Removing a required fieldWorkflow rules may expect that keyword to have a value
Changing dropdown optionsExisting documents keep their old values; searches and rules may need the new ones
Changing the Document TypeThe form must be re-linked to the new Document Type in OnBase

Chapter 8: Troubleshooting

Problem in OnBaseLikely causeFix
A value isn't saved to its keywordThe keyword name in OnBase differs from the one in the form, even by a spaceCheck the exact name in OnBase, rebind the field, re-import
A value saves to the wrong keyword copyThe field's Instance numberSet Instance to 1 unless you meant a second copy
Submitting fails on a dateThe keyword is a Date but the field isn't, or the client's date format differsUse a Date field; test in each client
Submitting fails on a numberLetters or currency symbols in a Numeric or Currency keywordUse a Number field; add help text such as "numbers only"
A dropdown value is refusedThe keyword uses a data set that doesn't include that valueUse Use the keyword's data set so the options match OnBase
Text is cut offThe value is longer than the keyword allowsThe field's length comes from the keyword; shorten the value or lengthen the keyword
Layout looks different in one clientOlder clients use an older browser engineKeyform Studio's HTML avoids newer features; tell your administrator which client and version
The form doesn't appear for usersRights or template link missingCheck the template is linked to the Document Type and user groups can create it

Chapter 9: Practice exercise

Take the AP Invoice Intake form from the Build and Preview guide all the way into your Test system.