Random Code field

Function : Generates a hidden random code “e.g. jfd33” without user intervention

Parameters

Label The label of this element , Since the element is invisible this label will be used only when viewing stored records
Prefix A string that will be prepended to the generated code “doesn't count towards maximum length”
Suffix A string that will be appended to the end of the generated code “Doesn't count towards maximum length”
Vaild characters The characters that will be used to generate the code, for example if you want to generate numeric codes only set this parameter to “123456780”
Length Maximum number of characters to randomly generate “doesn't include prefix or suffix”

Example

To generate random codes that look like this “CKI-2931-LD”

  • Set “Prefix” = “CKI-”
  • Set “Suffix” = ”-LD”
  • Set “Valid characters” = “0123456789”
  • Set “Length Maximum” = “4”
 
0.7/elements/random.txt · Last modified: 2009/09/06 17:39 by dr_drsh
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki