Question T2688
Visible to All Users

InputMask + styling on existing field types

created 5 years ago

Our team seems to be having some trouble(s) with inputMasking overall, but specifically there are a few issues:

  1. We cannot add $USD input masking to "number" fields, it seems -
    But when we use "text" it breaks the formatting and we cannot set style = "right align"

  2. For some numeric fields, such as "Zipcode" - SurveyJS does not have a premade 'single input' property/type
    So we cannot use "number" field type, but instead we use "text" field type.
    *Where should we refer to add more 'single input' field types + change/add additional inputMask/validations?

  3. I have read the documentation about "localization" but I am wondering about survey formatting / field format localization - is this possible/is there an easy way to accomplish this?

Specifically, we are reviewing things like:
Street Address - We have an enterprise client with address(es) in 20+ countries, and the street address STRUCTURE is different.
How can we add possible layouts for all countries?
My first thought was: Add new "address PANEL" for each country option…but I think this will make the editor view very messy/busy for only a few fields.

Telephone - I think we can add some inputMask "alias" to allow for different phone number format/country code - is there any recommended library/method?

Currency - I think this one, too, is not so hard - but if there is any recommendation or consideration, please let me know.

  1. TOTALS cells - we have a few options with currency, percent, decimal - but it is not totally clear to us how the output will be / if there is any recommended way to update/add TOTALS output formats?