I am using a masked input field and users may have a negative number to enter, how can I modify the masked field to allow a negative number input?

  • jcoste
    Asked on September 29, 2016 at 11:26 AM
  • Elton Support Team Lead
    Replied on September 29, 2016 at 1:21 PM

    You should probably use * on the first line so it accepts either both, letters/symbols for the negative sign and numbers if they intend not to enter negative numbers.

    I am using a masked input field and users may have a negative number to enter, how can I modify the masked field to allow a negative number input? Image 1 Screenshot 30

    You can also use the number field, it accepts negative numbers.

    I am using a masked input field and users may have a negative number to enter, how can I modify the masked field to allow a negative number input? Image 2 Screenshot 41

    Hope this helps!

  • fntgflorida
    Replied on September 29, 2016 at 1:29 PM

    How can this be applied to the Masked Input Widget

  • jcoste
    Replied on September 29, 2016 at 2:53 PM

    Elton, Thank you for your response, I would like to clarify my original question, How do I modify the "Masked Input Widget" to allow the user to enter a negative dollar value? 

     

    I would like to keep the figures entered to show as currency and include comma if the user enters figures that exceed 999. The widgets contains the desired formatting controls but is lacking the ability to allow the form creator to decide if we wish the form user to enter both positive and negative numbers.

     

  • David JotForm Support
    Replied on September 29, 2016 at 6:42 PM

    It is not possible to do with the masked input widget at this time.  The widget only allows for very specific formatting.  Using a number or text box field as my colleague suggested would allow for further formatting. 

  • jcoste
    Replied on September 30, 2016 at 11:13 AM

    FYI-  I think you almost have what I need and is it possible to allow formatting when manually entering data into the "Calculation Wizard Widget". Would you be able to modify the "Calculation Wizard Widget" it appears this one allows a negative number and currency symbol to be entered or formatted but the formatting becomes a manual input if not pointing to another input field.  I want to avoid using multiple fields to get the outcome desired. See image below.I am using a masked input field and users may have a negative number to enter, how can I modify the masked field to allow a negative number input? Image 1 Screenshot 20

  • David JotForm Support
    Replied on September 30, 2016 at 12:26 PM

    Your set up does look to likely be the best route to take to get the formatting you are looking for.  You can hide the extra fields from view and rename your calculation fields to what the unformatted fields were named previously.