7 Replies Latest reply on Apr 27, 2014 5:42 PM by pademo57

    Adding Leading Zeros to a field which uses the random function

    pademo57

      Title

      Adding Leading Zeros to a field which uses the random function

      Post

           Hi There,

           I've created a field which uses a random function to create a number from 1 to 30. However, I would like the field to show a leading zero if the number created is less than 10, in other words it should contain two characters no matter what.

           Currently the field is a number field, do I need to change this to a text field?

           If so, could someone tell me exactly what the script should look like please?