Is there a way add "%" suffix to a number entered into a form field?

  • Profile Image
    mvpphan
    Asked on January 20, 2017 at 01:46 PM

    Is there a way add "%" suffix to a number entered into a form field?

    For example, if someone enters "100", it automatically shows "100%" in the field.

     

     

  • Profile Image
    Jim_R
    Answered on January 20, 2017 at 03:27 PM

    I'm afraid there's no way to achieve that with our Form Builder. To start with, your textboxes were setup to only accept NUMBERS so having a % sign at the end of it, automatically appended as soon as the field is changed, will cause validation errors.

    Would it help if you'd just approach this differently? For example, append (in %) on all your labels, like so:

    The only other workaround would require programming knowledge with Javascript so it's best to consult this with your designer/developer first. What they'd do is grab the Full Source Code of your form, embed it on a page, then create the logic to append the % symbol at the end of the Textbox using the onchange event. Keep in mind that you'd need to remove your restriction to NUMERIC Fields alone so it would accept the % symbol as well.