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

  • mvpphan
    Asked on January 20, 2017 at 1: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.

     

     

  • Support_Management Jotform Support
    Replied on January 20, 2017 at 3: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.

    Is there a way add % suffix to a number entered into a form field? Image 1 Screenshot 40

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

    Is there a way add % suffix to a number entered into a form field? Image 2 Screenshot 51

    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.

    Is there a way add % suffix to a number entered into a form field? Image 3 Screenshot 62