Skip to content

This field plug-in is designed to display a symbol either before or after an input field.

License

Notifications You must be signed in to change notification settings

surveycto/format-symbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Format symbol

Screenshot

Description

This field plug-in is designed to display a symbol either before or after an input field. It was developed for a field plug-in development demonstration for beginners which you can learn more about in this recorded webinar and in this Support Center article.

Download now

Features

  1. Define symbol to be displayed.
  2. Choose where the symbol should appear.

This field plug-in also inherits functionality from the baseline-decimal field plug-in.

Data format

This field plug-in requires the decimal field type.

How to use

Getting started

To use this plug-in as-is

  1. Download the sample form from this repo and upload it to your SurveyCTO server.
  2. Download the format-symbol.fieldplugin.zip file from this repo, and attach it to the sample form on your SurveyCTO server.

Parameters

Parameter key Parameter value
symbol The symbol to be displayed.
placement The positioning of they symbol. This can take two values:
  1. left (default) - the symbol is on the left of the input box.
  2. right - the symbol is on the right of the input box.

Example

To display a percent symbol on the right of the textbox, the following would be placed in the appearance column of the spreadsheet form definition:

custom-format-symbol(symbol='%', placement='right')

Default SurveyCTO feature support

Feature / Property Support
Supported field type(s) decimal
Default values Yes
Constraint message Uses default behavior
Required message Uses default behavior
media:image Yes
media:audio Yes
media:video Yes
show-formatted appearance No

More resources

About

This field plug-in is designed to display a symbol either before or after an input field.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published