Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to make Integer Input to allow 00 in the Prefix

    I have a Dynamic form which has Integer Input. When i give 1232 its accepting
    But if i give 001232 after focus out its changed to 1232. How to retain the 00 in the Prefix ?


    {
    "name" : "accNum",
    "title": "Account Number",
    "type" : "integer",
    "required" : "false",
    ""showIf: "true"
    }

    Attached Files

    #2
    Hi sathis201021,

    "001232" is a string and not an integer. What is stored in the backend and what's the data type there?

    Best regards
    Blama

    Comment


      #3
      Hi Blama

      In DB its stored as an Integer too. But i have changed the type to "Text" in UI. Still when i focus out "00" is getting omitted.

      Comment


        #4
        Try changing your .ds.xml field type to text. But I don't think this all is correct.
        You could also try setting a FormatString of 000000. Not sure this works, though.

        Best regards
        Blama

        Comment


          #5
          Its working, Thank you Blama

          Comment

          Working...
          X