דלגו לתוכן

Create and import templates

תוכן זה אינו זמין עדיין בשפה שלך.

You can create a new HTML template or PDF template, or import a template from a file that was exported from Cellosign. To copy a template in the same project, open it and click Clone template. See Clone a template.

You need the Implementer, Project manager or Organization manager role.

  1. In Templates, click Create Template.
  2. In Template Name, enter a name. See Template name.
  3. Select the type:
    • HTML Template: a form that you build in the editor.
    • From PDF file: a PDF template. Drag the PDF file to Upload PDF File, or click it to select the file. See PDF file.
  4. Click Save, or press Enter.

The Create New Template dialog with the template name and the HTML Template and From PDF file options

Save is available after you enter a name and, for a PDF template, select a file. The message “Template created successfully” appears, and the template opens in the template editor in Edit status: on the HTML Template editor tab for an HTML template, or on the PDF Template editor tab for a PDF template.

For the difference between the types, see Template types. To make a hybrid template, create a PDF template first and then add an HTML form to it. See Hybrid templates.

  • Up to 150 characters.
  • Letters, digits, spaces and these characters: , - _ : + ( ) = @ ? * % ; | \ . $ – & !, and the Hebrew geresh (׳) and gershayim (״).
  • Other characters, such as quotation marks, aren’t allowed.

If the name breaks a rule, the template isn’t created, and a message gives the rule, for example “Maximum 150 characters allowed for template name.” The same rules apply when you rename the template in the editor.

Names don’t have to be unique: Cellosign identifies each template by its template ID.

  • Only .pdf files can be selected. Another file shows the message “Invalid file type”.
  • The file can be up to 5 MB, unless Cellosign set a different limit for your installation. A bigger file shows “Uploaded file is too big. You may upload a file up to 5Mb”, with the limit of your installation.
  • When the page-size check is included in your organization’s plan, all the pages must be the size of the first page. If they aren’t, the template isn’t created, and a message lists the pages to fix.

To replace the PDF of a PDF template later, use Change PDF background in the editor. See Change the PDF.

Import a template to move it from one Cellosign environment to another, for example from a test server to production. First export the template in the editor of the source environment. See Export a template.

You can import two types of files:

File How you get it What it includes
.json Export template in the editor toolbar The template, with its PDF and images.
.cellosign Export recovery in the editor toolbar The template and the objects it uses: the data sources (dictionaries) of its fields, its integrations (connectors, payment and CIV), the workflow it is bound to, and the templates in its templates sequence, with the objects they use. Client secrets aren’t included: set them up in the target project.

Imported templates are created in Edit status, also when they replace an existing template. Publish them when they are ready.

  1. In Templates, click Upload Template From File.
  2. Drag the .json file to the dialog, or click to select it.

The import starts as soon as you select the file. When it finishes, the message “Template created successfully” appears, and the template opens in the editor.

The imported template keeps the ID it had in the source environment. If a template with this ID already exists in the environment, the import fails with “Template with this ID already exists”. To make a copy of a template in the same environment, use Clone template instead.

Some templates can be imported only when the feature they use is included in your organization’s plan:

Importing a .cellosign file requires that backup is included in your organization’s plan.

  1. In Templates, click Upload Template From File.

  2. Drag the .cellosign file to the dialog, or click to select it.

  3. Under Choose how to handle existing objects, select an option:

    Option What happens to objects in the file that already exist in the project
    Use existing objects They are kept as they are. Only the objects that don’t exist yet are created. This is the default.
    Override existing objects They are replaced with the versions in the file. Before a template is replaced, Cellosign saves a copy of it named “Copy of” followed by the template name, in Edit status. The replaced template keeps its ID.
  4. Click Upload.

The Upload Template from file dialog after a .cellosign file is selected, with Use existing objects and Override existing objects

When the import finishes, the message “Template created successfully” appears, and the template opens in the editor. If the template already existed and you selected Use existing objects, the existing template opens unchanged.

If the file has a template that exists in another project of the environment, nothing is imported and an error is shown.

The dialog waits up to 10 seconds for the import. A big import can take longer: the dialog then shows “Upload timed out, please try again”, but the import goes on. Check the Templates list before you upload the file again.

Message What it means
Template created successfully The template was imported and opens in the editor.
Invalid file type The file isn’t a .json or .cellosign file.
Template with this ID already exists A template with the same ID already exists in the environment (.json file).
oops, something goes wrong The .json file isn’t a template exported from Cellosign, or it couldn’t be read.
No template found in the uploaded file The .cellosign file has no template.
Upload timed out, please try again The import of a .cellosign file took longer than the dialog waits. See Import a .cellosign file.
Unknown error occurred, please contact admin The file couldn’t be imported, for example because it uses a feature that isn’t included in your organization’s plan.