PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Generate random number based on fields

  1. chingy
    Member

    Hi

    At the moment I have the following fields (where the brackets are the values):

    • Product Name
    • Category dropdown
      • Canada(CAN) | United Kingdom(UK)| United States(USA)
    • Size dropdown
      • Small(S) | Medium(M) | Large(L)
    • Colour dropdown
      • Red(RD) | Blue(BL) | Green(GR)

    I'd like to use GF to generate serial numbers of some products, based on what is input in the form.

    So for example a Blue T-Shirt in Large made in Canada may generate the following serial code (where the last 8 alphanumeric values are completely random)

    CAN-L-BL-nR2itwy6

    I have read and followed http://www.gravityhelp.com/forums/topic/guid-entry-id which is great for generating random values - but is it possible and could someone help please - to generate the random string WITH the values based on the selection?

    Also, I need the random code to be unique (even in the case where as like above, I may enter another Blue T-Shirt in Large made in Canada).

    Really appreicate any help

    Thanks

    Posted 6 years ago on Friday June 28, 2013 | Permalink
  2. chingy
    Member

    No help?

    Posted 6 years ago on Thursday July 11, 2013 | Permalink
  3. David Peralty
    Administrator

    This is really a customization with a fair number of moving pieces.

    With the tutorial that you linked to, and some understanding of PHP, you should be able to extend it into what you need.

    If you are unable to, your best bet would be to post on our Job Board, or look at hiring a developer form jobs.wordpress.net or a freelancer site like odesk.com.

    Posted 6 years ago on Thursday July 11, 2013 | Permalink

This topic has been resolved and has been closed to new replies.