2 Replies Latest reply on May 6, 2008 11:31 PM by georgev63

    Field Mask

    Level 1
      anybody able to hack the Mask Field function to accept a dollar amount

      Ex: 89283.90

      I want to be able to add as many numbers before the decimal but only two afterwards.

        • 1. Re: Field Mask
          Günter Schenk Level 4
          Hi Joe,

          ADDT´s Mask Field widget doesn´t allow for a variable number of digits preceeding the decimal, so I´d suggest to rather use a regular text input field and define a Regular Expression for the corresponding field validation:


          This regex will allow a "between one and unlimited times" number of digits preceeding the decimal, but will enforce a decimal followed by exactly 2 digits.

          Günter Schenk
          Adobe Community Expert, Dreamweaver
          • 2. Re: Field Mask
            georgev63 Level 1
            Joe, not to dismiss the power of regular expressions but another alternative would be to configure your field to submit as 'double' and then select the float or positive float validation format for that field. The float/positive float options become available only after you have configured your field to submit as double.