Skip to main content
Participating Frequently
July 6, 2016
Question

Create "unique" form ID upon opening

  • July 6, 2016
  • 0 replies
  • 168 views

Afternoon.

I've spent a few days looking into this and unfortunately have come across at least a dozen possible answers.

My situation is thus: I have a requisition form for my sales force to use to request things like give-away items and printed sales collateral. I would like each form to be able to generate a "unique" id each time the form is opened.

This form will not be working off a central database so what I found as a possible option is to use something like total milliseconds from epoch or even a concatenation of total days from epoch + total milliseconds from epoch. I understand that this will not be a truly unique ID however I'm fairly certain that the likelihood of two or more sales people opening this form at the exact same time on the exact same day is unlikely to happen.

Another option would be to use the date & time of the computer the form is being opened on.

Another option might be to simply concatenate the sales person's name with milliseconds since epoch. In that fashion, two or more people could open the form at the same time on separate systems but still have unique IDs assigned.

Sadly, each script I've managed to find online either (a) does not work at all or (b) works once and then that's it.

I've also read that this is really only achievable with Livecycle Designer. Unfortunately (a) I don't have it and (b) my company won't get it.

So here's a bunch of questions I would love to get a definitive answer from:

  1. Is there a solution to do this outside of LiveCycle using JS within the desired form properties?
    1. If so, could someone possibly provide me with some guidance? The more detailed, the better.
  2. Is this must be done via LiveCycle, is there anyone on here that would be able to do it for me?

Thanks.

This topic has been closed for replies.