Customizing the Unique ID plugin count cycle

  • yabdil
    Asked on August 3, 2014 at 2:22 PM

    Hi, 

    JotForm is really a big help in organizing our exams. Thank you for this great service. We use JotForm to take submissions for our exams in university. When students apply for an exam, an entrance document is automatically posted to their mail adress. In this entrance document I want to include exam entrance place too. Unique ID is ok but what I need is changing the prefix after a certain number. For example: let's say prefix is 203 and counter number is 15 (203-15) in my form this means that applicant is going to enter the exam in class number 203 and in 15th desk. But in a class there are just 20 desks. After number 20 the prefix should change to 204 and after 204-20 it should start with 205-01. Is it possible to create my own .txt file including the prefixes and counter numbers such as: 

    201-01

    201-02

    ....

    201-20

    202-01

    202-02

    ...

    ...

    214-01

    214-02

    ...

    ...

    Thank you for your help and for your service. 

     

  • KadeJM
    Replied on August 3, 2014 at 5:58 PM

    Thank you for your comments about our platform, we do appreciate that. Involving your question here it seems to me that you are looking to control this further as interchangeable unique id that could become multipurposed to trade off prefixes and Number Counts perhaps? Please correct me if I have gone off-track.

    Also, I'm afraid I don't fully understand your intentions regarding the .txt file. Can you please clarify your intentions involving the text prefixes and an example of how this would come into play to affect it maybe? I apologize about any confusion that I might have.

  • yabdil
    Replied on August 4, 2014 at 2:45 AM

    Hi, 

    What I mean about .txt file is that I'll write my own ids in txt file and Uniqe ID plugin will use it as a source to give id to submitters. For example my .txt file will be like this:

    201-01

    201-02

    201-03

    ...

    205-05

    205-06

    ...

    Unique ID will use this .txt as a source. The id of the first sumbitter will be 201-02, second 201-02 and so on...

     

    Anyway .txt is just an idea. What I exactly want is changing the prefix after a certain number. Let's say my prefix is 201. After the number 201-20, prefix should change to 202 and number should start from 1 again. 

  • jonathan
    Replied on August 4, 2014 at 6:00 AM

    Hi,

    I think your idea is very much doable, but it will require a lot of programming involvement since that will probably be stand alone application in itself. If you intend to use the JotForm form, you will also use its source code as a requirement.

    User Guide: -How-to-get-the-Full-Source-Code-of-your-Form

     

    What I exactly want is changing the prefix after a certain number. Let's say my prefix is 201. After the number 201-20, prefix should change to 202 and number should start from 1 again. 

     

    You can do this using the Calculation Widget to generate the unique value. You will no longer need the Unique ID field.

    Check this user guide -How-to-Populate-Field-with-a-Value-from-another-Field

    Using the Calculation field, you can generate new value base on calculation. 

    If you check this template on random number generator , the idea is similar to what you described. Only your idea have a define number when the prefix will change, while the random generator template is prefixed after a random value.

     

    Hope this help. Inform us if you need further assistance.

    Thanks!

     

     

     

     

     

  • yabdil
    Replied on August 4, 2014 at 7:31 AM

    It seems complicated but I'll try my best to figure it out :) Let's see what I can do:)

  • TitusN
    Replied on August 4, 2014 at 9:45 AM

    Please do let us know how we can assist further.