Skip to content

A simple replacement for the default decimal field with dynamic input text in the placeholder

License

Notifications You must be signed in to change notification settings

ARCED-Foundation/decimal-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decimal-placeholder

Download now

Customized text inside placeholder of decimal type field

Description

Use this field plug-in to use customized text in the placeholder of decimal type field.

For this field plug-in, enter the text for the text parameter (see Parameters below), and that text will be shown into the field's placeholder. It can only be used with decimal field type.

This plug-in was developed based on the baseline-decimal field-plug-in, therefore, also supports the additional improvements in the baseline-decimal field-plug-in.

Download now

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
Read only Yes (shows the current value, if present)
media:image Yes
media:audio Yes
media:video Yes
show-formatted appearance No

How to use

To use this field plug-in as-is, just download the decimal-placeholder.fieldplugin.zip file from this repo, and attach it to your form.

To create your own field plug-in using this as a template, follow these steps:

  1. Fork this repo

  2. Make changes to the files in the source directory.

    • Note: be sure to update the manifest.json file as well.
  3. Zip the updated contents of the source directory.

  4. Rename the .zip file to yourpluginname.fieldplugin.zip (replace yourpluginname with the name you want to use for your field plug-in).

  5. You may then attach your new .fieldplugin.zip file to your form as normal.

Parameters

There is one parameter, text, which is the custom text. The following example can be used in appearance for a decimal field type:

custom-decimal-placeholder(text='Please write the height in feet')

More resources

About

A simple replacement for the default decimal field with dynamic input text in the placeholder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published