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 11 years, 9 months ago.

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


    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.



    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

    (/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.