Fixed length form sequence number

Home Forum General Fixed length form sequence number

This topic contains 1 reply, has 0 voices, and was last updated by  Anonymous 9 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #371

    Anonymous

    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.

    #4951

    ijobling
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.