PerfectForms Forums » General

Fixed length form sequence number

(2 posts)
  1. wliang
    Member

    I like to format the form sequence number to fixed lenght. For example, the form should show 0000123 instead of 123. Is it possible? Thanks.

    Posted 2 years ago #
  2. ijobling
    Member

    its possible but more as a 'workaround' than a defined function.
    you can write the form instance number to a field, run a behaviour to check how LONG it is (1 char, 2 chars etc)using the 'LENGTH' function and then based on that result then use a 'set field' script to prefix the appropriate number of 0's you want

    There may be other behaviour functions
    (http://www.perfectforms.com/Documentation/manual/html/functions.htm) that could do this more succinctly, but this is one way you could do it.

    perhaps someone else has come across a better way and would like to share

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture