Unique ID widget: Can the value be passed as an output to a text box or in a calculation?

  • Profile Image
    paul_x
    Asked on September 29, 2015 at 09:35 AM

    Can the Unique ID value be passed to a textbox via form calculation? 

    If not, is there a way to achieve this?

  • Profile Image
    Charlie
    Answered on September 29, 2015 at 09:57 AM

    Unfortunately, the Unique ID widget value cannot be used as an output to a text box or in a calculation.

    May we know how your form works? We might have a workaround for you. But let me forward this to our widget team as a feature request, but I'm unable to guarantee that this will be implemented anytime soon.

    Thank you.

  • Profile Image
    NicholasWestley
    Answered on October 01, 2015 at 03:25 AM

    Hi,

    This is not possible unfortunately. The IDs are generated when a form is submitted. If they were generated when a form is served there would be gaps between IDs which most people do not want.  This would happen because people loading and not completing forms is a very regular occurence.  It would alse mean that if two people loaded the form at the same time but one took longer the IDs would be out of order:

    user A loads form gets ID 1.

    user B loads form gets ID 2.

    User B then submits the form befire user 1, the IDs are out of order.

    I hope this answers your question, please let us know if not.

    Regards,

    Nicholas